0

Syntax

when trying to run the simple calculations from step 2 of python concepts on my pc, I get a syntax error relating to >>> . what am I doing wrong? Without it, the calculation returns nothing, but runs without error. edit: when I run it I the shell, rather than in a new file, it works. why is this? What is the point of new files, then? I'm obviously new to python, so any info about how the shell operates would be greatly appreciated!

23rd Jun 2017, 2:58 AM
themo
themo - avatar
2 Answers
+ 8
>>> is just what the console uses don't use it in files, or at all really
23rd Jun 2017, 4:06 AM
Ahri Fox
Ahri Fox - avatar
+ 1
thanks! wish the tutorials explained that a bit better, but hey, that's what the discussions are for!
23rd Jun 2017, 5:13 AM
themo
themo - avatar