Python - Calculating Averages Tutorial

preview_player
Показать описание
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))
Рекомендации по теме
Комментарии
Автор

print("The average of those 3 numbers is:", round(average, 3))

qazS
Автор

You have print the average of "3" numbers not 2

bobcant