#Need help figuring out why I don't get 2 PRINT statements with IF statements

1 messages · Page 1 of 1 (latest)

lost widgetBOT
#
Program Output
What is the unit? (C / F / K): What is the temperature value?:
Compiler Output
Traceback (most recent call last):
  File "/app/output.s", line 2, in <module>
    temp = float(input("What is the temperature value?: "))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: 'temp = float(input("What is the temperature value?: "))'
buoyant cove
#

cos your check for new_unit is done only if unit is correct, if unit is not C/K/F code inside that if/elif is never executed

wise tundra
#

hi

#

thanks

#

i fixed it

#

ty

#

sorry for trouble