Mar-18-2018, 04:07 AM
Ok I need help. I can't find the issue with this code
>>> def main():
celsius=eval(input("What's the Celsius temperature" ))
fahrenheit=9/5*celsius+32
print("The fahrenheit temperature is "fahrenheit)
This is a simple converter, I'm just practicing around by reading a guide that I have. But for some reason I get a syntax error message when I 'print' Fahrenheit(the last line). Can someone explain me why? what am I doing wrong?
>>> def main():
celsius=eval(input("What's the Celsius temperature" ))
fahrenheit=9/5*celsius+32
print("The fahrenheit temperature is "fahrenheit)
This is a simple converter, I'm just practicing around by reading a guide that I have. But for some reason I get a syntax error message when I 'print' Fahrenheit(the last line). Can someone explain me why? what am I doing wrong?