Calculator using Python || Python project || c4rcoding

Pubblicato il: 10 maggio 2023
sul canale di: 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


In questa pagina del sito puoi guardare il video online Calculator using Python || Python project || c4rcoding della durata di ore minuti seconda in buona qualità , che l'utente ha caricato C 4r Coding 10 maggio 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 52 volte e gli è piaciuto 8 spettatori. Buona visione!