Menu

Print Number Times Max Temp Occurs Python T Use Built Functions Find Maximum Temp Q43824515

How do I print the number of times the max temp occursin Python? (I can’t use any built-in functions to find the maximumtemp.)

1 2 3 temps = [1,9,4,9,9] max_temps = temps[@] hot_days = [] undefined [9] OOO OU W for temperature in temps: if temperature

1 2 3 temps = [1,9,4,9,9] max_temps = temps[@] hot_days = [] undefined [9] OOO OU W for temperature in temps: if temperature > max_temps: max_temps = temps [-1] hot_days = hot_days + [temperature] 11 print(max_temps) print(hot_days) print len(hot_days) 12 Show transcribed image text 1 2 3 temps = [1,9,4,9,9] max_temps = temps[@] hot_days = [] undefined [9] OOO OU W for temperature in temps: if temperature > max_temps: max_temps = temps [-1] hot_days = hot_days + [temperature] 11 print(max_temps) print(hot_days) print len(hot_days) 12

Expert Answer


Answer to How do I print the number of times the max temp occurs in Python? (I can’t use any built-in functions to find the maximu…

OR