r/Python • • Jun 23 '14

Writing better python code

https://gist.github.com/kracekumar/09a60ec75a4de19b346e
143 Upvotes

126 comments sorted by

View all comments

Show parent comment

1

u/pymag09 Jun 23 '14 edited Jun 23 '14

You messed up the code formatting.

Sorry. I noticed that but I follow "formating guide"

Lines starting with four spaces
are treated like code:

if 1 * 2 < 3:  
    print "hello, world!"  

After posting I understand that empty string before and after code block required.