My output isnt matching expected output. How do I get rid of the first part of my output? The second part on the bottom of my output is correct, other than the space after the first two lines. How do...


My output isnt matching expected output. How do I get rid of the first part of my output? The second part on the bottom of my output is correct, other than the space after the first two lines. How do I correct that?


1 def check_input(temperture):<br>if temperature>=-10 and temperature <=-4 or temperature >=20 and temperture<=50:<br>2<br>return True<br>else:<br>return False<br>6.<br>7 if<br>name<br>main_':<br>==<br>8<br>total-e<br>count=0<br>for i in range (1,6):<br>temperature-float(input())<br>if check_input (temperature):<br>total-total+temperature<br>count=count+1<br>if count==1:<br>10<br>11<br>12<br>13<br>14<br>15<br>maximum-temperature<br>minimum=temperature<br>elif temperature<minimum:<br>minimum=temperature<br>elif temperature>maximum:<br>maximum=temperature<br>else:<br>16<br>17<br>18<br>19<br>20<br>21<br>22<br>23<br>print(

Extracted text: 1 def check_input(temperture): if temperature>=-10 and temperature <=-4 or="" temperature="">=20 and temperture<=50: 2="" return="" true="" else:="" return="" false="" 6.="" 7="" if="" name="" main_':="=" 8="" total-e="" count="0" for="" i="" in="" range="" (1,6):="" temperature-float(input())="" if="" check_input="" (temperature):="" total-total+temperature="" count="count+1" if="" count="=1:" 10="" 11="" 12="" 13="" 14="" 15="" maximum-temperature="" minimum="temperature" elif="">maximum: maximum=temperature else: 16 17 18 19 20 21 22 23 print("") print("The minimum value is {},".format (minimum) print("the maximum value is {},".format(maximum) print("the average value is {}.".format(total/count) 24 25 26 27
-10<br>-20<br>Input<br>20<br>48<br>21<br>The minimum value is -10,<br>the maximum value is -10,4<br>the average value is -10.0.4<br>The minimum value is -10,4<br>the maximum value is -10,4<br>the average value is -10.0.4<br>The minimum value is -10,<br>the maximum value is 20,4<br>Your output<br>the average value is 5.0.4<br>The minimum value is -10,4<br>the maximum value is 48,<br>the average value is 19.3333333<br>3333332.<br>The minimum value is -10,<br>the maximum value is 48,4<br>the average value is 19.75.<br>The minimum value is -10,<br>Expected output<br>the maximum value is 48,<br>the average value is 19.75.<br>

Extracted text: -10 -20 Input 20 48 21 The minimum value is -10, the maximum value is -10,4 the average value is -10.0.4 The minimum value is -10,4 the maximum value is -10,4 the average value is -10.0.4 The minimum value is -10, the maximum value is 20,4 Your output the average value is 5.0.4 The minimum value is -10,4 the maximum value is 48, the average value is 19.3333333 3333332. The minimum value is -10, the maximum value is 48,4 the average value is 19.75. The minimum value is -10, Expected output the maximum value is 48, the average value is 19.75.

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here