Question: Complete the following code segment so that a user can enter two float numbers and output the average. When using the input function, please don't

Complete the following code segment so that a user can enter twoComplete the following code segment so that a user can enter two float numbers and output the average. When using the input function, please don't write any message between the ( ), just write input().

Question 1 - 5 pts Reset History Summary Complete the following code segment so that a user can enter two float numbers and output the average. When using the input function, please don't write any message between the ( just write input(). Sample runs Input 1: 7.6 4.2 Output 1: 5.9 Input 2 10 21 Output 2 15.5 Test 2- def main(): # your code starts here 4 5 6 # your code ends here 8 avg = (numi + num2) / 2 9 print(avg) 10 main() Input Input Submit x3 Test Run Viz Save

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!