Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Navigate Search Project Pyder Run Window Help = en 18+102 functions.py x 14 15 1.6 17 defef temperatures (): 18= Asks the user for daily

image text in transcribed
image text in transcribed
Navigate Search Project Pyder Run Window Help = en 18+102 functions.py x 14 15 1.6 17 defef temperatures (): 18= Asks the user for daily high temperatureg (in Celsius) erom the keyboard. The function stops asking: for temperatures when the user entera -500. The function Feturns: the total number of hot daye (temperatures 28 or hicher) the tatal number of pleasant days (temperatures 1627 ) the total number fi cold days (tomperatures 15 or lower) the average tempetature for all days (rounted down) Do all inputa and calculationd in Integer. Uere: cold days, pleasant days, hot dayg, avg temp = temperatureat Retiurna: eold daye - number of cold dayer (int) pleraiant doys - number of pleasarit days (Int) hot daya - number of hot days (int) ave teup - average temperature of all daye (int) Pcomole = No mmonles to ithedor at thes time. from t02 functions import temperatures 14 cold days, pleasant days, hot_days, avg temp = temperatures () 15 print() 16 print ( f "Cold days: fcold days/") 17 print (f"pleasant days: (pleasant days)") 18 print (EHot days: (hot days)") 19 print ( " "Average temperature: (avg temp:..2f) C") 20

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions

Question

run so each string for a thread is always the same letter

Answered: 1 week ago