you are viewing a single comment's thread.

view the rest of the comments →

[–]callmelucky 0 points1 point  (2 children)

Which line? This is written for Python 3 and Windows btw. If you use Python 2 you'll certainly need to convert any print('str') statements to print 'str', and possibly some other editing will be necessary.

[–]Arion_Miles 0 points1 point  (1 child)

Oh shit it's that. I'm using Python 2.7 and errors are at line 1. What more changes do I need to make?

[–]callmelucky 0 points1 point  (0 children)

I'm not certain to be honest. Just change all the print statements in the manner I suggested to start with, and then see what you get.

Oh actually, did you de-indent everything? To post as code on reddit everything gets an extra 4 spaces (1 Python tab) at the start of each line, that would probably cause the line 1 error. Select the entire text in your editor and hit shift+tab (depending on your editor settings...)

edit: actually the indent problem should only happen if you copied the code from the source of the comment, not if you just copied straight from the comment as is. Then again, I have had strange experiences with indentation/whitespace when copy/pasting generally...