Answered step by step
Verified Expert Solution
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,
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
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