You are viewing a single comment's thread. Return to all comments →
import operator if __name__ == '__main__': a = int(input()) b = int(input()) operators = { # 4 // 3 = 1 "FLOORDIV": operator.floordiv, # 4 / 3 = 1.33... "TRUEDIV": operator.truediv } for operator_name in operators.keys(): print(operators[operator_name](a, b), sep='\n')
Seems like cookies are disabled on this browser, please enable them to open this website
Python: Division
You are viewing a single comment's thread. Return to all comments →