Question: 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](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f2ea4940eac_72066f2ea48c0eb9.jpg)
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
Get step-by-step solutions from verified subject matter experts
