224k views
9 votes
Write a Python program in Python-IDLE(in Script mode), save and upload in the

classroom for the following. 1) To calculate addition, subtraction, multiplication
of any 2 values which you will input while running the program. 2) To input 5
values, calculate total and average of those five values.
Your answer​

User Ankostis
by
6.2k points

1 Answer

10 votes
num1 = int(input(“Enter First Number: “)
num2 = int(input(“Enter Second Number: “)
add_num = num1 + num2
sub_num = num1 - num2
mult_num = num1 * num2
div_num = num1 / num2
print(“Results”)
print(“Addition: “ + add_num)
print(“Subtraction: “ + sub_num)
print(“Multiplication: “ + mult_num)
print(“Division: “ + div_num)
User Baam
by
5.6k points