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 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
Get step-by-step solutions from verified subject matter experts
