Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Complete the Python code by filling in [B] to return the below output. Enter tempeatures of past three days in Fahrenheit separated by comma: 70,

image text in transcribed

Complete the Python code by filling in [B] to return the below output. Enter tempeatures of past three days in Fahrenheit separated by comma: 70, 71, 72 The average temperature is 71.0 degrees Fahrenheit. in progran to calculate the average temperature of three daya det average (x,y,z): a =(x+y+z)/3 def main(): t1, t2, t.3 = input("Znter tempeaturea of past three daya in Fahtenheat separated by oanma: ") . split(", ") print ("thoat (t1), float (t2), float (t3)) main () Question 3 Complete the Python code by filling in [C] to return the below output. Enter a real number: 0 The number is nonnegative. r= float (input("Enter a real number: ")) if I [C] 0 : print("The number is nonnegative.") else: print("The number is negative.")

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

Data And Information Quality Dimensions, Principles And Techniques

Authors: Carlo Batini, Monica Scannapieco

1st Edition

3319241060, 9783319241067

More Books

Students also viewed these Databases questions