Python - Calculating Averages Tutorial

Поділитися
Вставка
  • Опубліковано 10 жов 2024
  • Learn how to calculate averages using Python.
    ~ CODE ~
    num1 = int(input("Enter the first number: "))
    num2 = int(input("Enter the second number: "))
    num3 = int(input("Enter the third number: "))
    average = (num1 + num2 + num3) / 3
    print("The average of those 2 numbers is:", round(average,2))

КОМЕНТАРІ • 12