Calculator using Python || Python project || c4rcoding

Published: 10 May 2023
on channel: C 4r Coding
52
8

#python #pythonprojects #pythonprogramming #pythontutorial #pythonforbeginners #c4rcoding



---------Project 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")





#python #pythonprojects #pythonprogramming #pythontutorial #pythonforbeginners #c4rcoding


On this page of the site you can watch the video online Calculator using Python || Python project || c4rcoding with a duration of hours minute second in good quality, which was uploaded by the user C 4r Coding 10 May 2023, share the link with friends and acquaintances, this video has already been watched 52 times on youtube and it was liked by 8 viewers. Enjoy your viewing!