the-honk/gcse computer science/year 9/python challenges/2 - Average.py
2024-10-09 18:02:34 +01:00

4 lines
No EOL
203 B
Python

num1 = int(input('Input your first number.'))
num2 = int(input('Input your second number.'))
average = str((num1 + num2) / 2)
print('The average of ' + str(num1) + ' and ' + str(num2) + ' is ' + average)