Calculator using Python || Python project || c4rcoding

Опубликовано: 10 Май 2023
на канале: 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


На этой странице сайта вы можете посмотреть видео онлайн Calculator using Python || Python project || c4rcoding длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь C 4r Coding 10 Май 2023, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 52 раз и оно понравилось 8 зрителям. Приятного просмотра!