fork download
  1. #!/usr/bis/env python3
  2. #...initalizing looping variable, assume yes as first answer continueT="Y"
  3.  
  4. while continueYN=="Y";
  5. #...get temperature input from the user, prompt them for what we expect
  6. degreeF=input ("Enter next temperature in degrees F to check")
  7.  
  8. degreeC=(degreeF-32)* 5/9
  9.  
  10. print"Temperature in degrees C is:"% degreeC
  11.  
  12. #...check for temperature below freezing...
  13. if degreeC <0;
  14. print"Pack long underwear!"
  15.  
  16. #...check for it being a very hot day
  17. if degreeF>100:
  18. print"Remember to hydrate!"
  19.  
  20. continueYN=input("Input another?")
  21.  
  22. #exit the program# your code goes here
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/py_compile.py", line 117, in compile
    raise py_exc
py_compile.PyCompileError:   File "prog.py", line 4
    while continueYN=="Y";
                         ^
SyntaxError: invalid syntax

stdout
Standard output is empty