Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 SaveStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started