Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedComplete 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Constraint Databases

Authors: Peter Revesz

1st Edition

1441931554, 978-1441931559

More Books

Students also viewed these Databases questions