Question: Complete the python code to take two integers as the user input and print their average 1 number1=int (input (2)) 2 number2=int (input (2))

Complete the python code to take two integers as the user input

Complete the python code to take two integers as the user input and print their average 1 number1=int (input (2)) 2 number2=int (input (2)) 3 avg = (number1 + number2) / 2 4 print 'The average of numbers = %0.2f % avg) Output 22The average of numbers = 2.00

Step by Step Solution

3.41 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

number1 intinputEnter the first number number2 in... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!