def add(n1, n2): return n1 + n2 def subtract(n1, n2): return n1 - n2 def multiply(n1, n2): return n1 * n2 def divide(n1, n2): return n1 / n2 def sqaure_root(num1): n = num1 ** 0.5 print(f"Current Result : {round(n, 1)} \n End of calculation") def sqaure(num1): n = num1 ** 2 print(f"Current Result : {round(n, 1)} \n End of calculation") def display(): print(" + \n - \n * \n / \n Square Root(sr) for one value \n Sqaure(s) for one value\n ") op_list = ['+', '-', '*', '/', 's', 'sr'] def calculation_operation(): num1 = int(input(" Enter a First number : ")) display() def further(num1): flag = True while flag: op = input(" Choose operator from above : ") if op == 's': ...
Comments
Post a Comment