I've got a book for python 2. in school and the problem is that we're programming in 3. which makes it difficult from time to time to get it right, cause you cant just copy the text in the book to the shell.
I'm stuck with this ex:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# This is a program to convert celsius to Fahrenheit
def main():
celsius = input('What is the temperature in celsius? ')
fahrenheit = (9.0 / 5.0) * celsius + 32
print('The temperature is', fahrenheit, 'degrees Fahrenheit.')
main()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
when i run it in shell for 3. i get the following error msg:
"Can't convert 'int' object to str implicitly"
Now i need help to translate this to 3. python.
Best regards
Simon