#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")
Nesta página do site você pode assistir ao vídeo on-line Python calculator program 🧮 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Bro Code 17 Outubro 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 242,675 vezes e gostou 4 mil espectadores. Boa visualização!