#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
En esta página del sitio puede ver el video en línea Calculator using Python || Python project || c4rcoding de Duración hora minuto segunda en buena calidad , que subió el usuario C 4r Coding 10 mayo 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 52 veces y le gustó 8 a los espectadores. Disfruta viendo!