#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
Sur cette page du site, vous pouvez voir la vidéo en ligne Calculator using Python || Python project || c4rcoding durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur C 4r Coding 10 mai 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 52 fois et il a aimé 8 téléspectateurs. Bon visionnage!