Python tutorial for beginners
Top Comments
All Comments (561)
-
@Stormrage32 Figured it out! indenting is very important!
-
@TheBrokenVampire2 Is it UNIX (Linux or Ubuntu) based? If so then the console commands will be the same. So if you figure it out, please tell me!
Thanks!
-
in version 3.2.2, they want you to place the variable in brackets. Therefore, you'd type
print(Celcius) instead of just print Celsius. One of the small changes of 3.2.2 :D
-
@pos6666666 I fixed it by typing in "Celsius. print" without the quotation marks, though when I open up the shell it doesn't do anything.
-
@Stormrage32 No, I'm not on a Mac. Just a normal laptop.
-
@TheBrokenVampire2 I get the same thing on 2.7.2 version as well. I typed it all out and tried to copy and paste, still got the same thing. Wonder what is wrong?
-
@TheBrokenVampire2 Same Here! Are you on a mac?
On the 'print Celsius' line, the 'print' turned purple, and when I tried to run it, it said Syntax Error, and highlighted the Celsius part of the text. I'm using version 3.2.2
TheBrokenVampire2 1 week ago 6
@TheBrokenVampire2 Python 3.x handles print statements differently. You need to put everything you want to print in parentheses. So it would be:
Print (Celsius, 'Celsius =', Fahrenheit, 'Fahrenheit');
me4901 4 days ago