#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
Nesta página do site você pode assistir ao vídeo on-line Calculator using Python || Python project || c4rcoding duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário C 4r Coding 10 Maio 2023, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 52 vezes e gostou 8 espectadores. Boa visualização!