Toptube Video Search Engine



Title:Python calculator program 🧮
Duration:03:55
Viewed:133,190
Published:17-10-2022
Source:Youtube

#python #tutorial #code operator = input("Enter an operator (+ - * /): ") num1 = float(input("Enter the 1st number: ")) num2 = float(input("Enter the 2nd number: ")) if operator == "+": result = num1 + num2 print(round(result, 3)) elif operator == "-": result = num1 - num2 print(round(result, 3)) elif operator == "*": result = num1 * num2 print(round(result, 3)) elif operator == "/": result = num1 / num2 print(round(result, 3)) else: print(f"{operator} is not a valid operator")



SHARE TO YOUR FRIENDS


Download Server 1


DOWNLOAD MP4

Download Server 2


DOWNLOAD MP4

Alternative Download :