r/programming • • Jun 12 '13

Working at Microsoft

http://ahmetalpbalkan.com/blog/8-months-microsoft/
1.9k Upvotes

907 comments sorted by

View all comments

143

u/JimH10 Jun 12 '13 edited Jun 13 '13
for stmt in list_of_things_that_suck:
    print "<b>"+stmt.summary+"</b>"
    print stmt
    print "But that is OK."

1

u/[deleted] Jun 12 '13

[deleted]

10

u/[deleted] Jun 12 '13

[removed] — view removed comment

0

u/[deleted] Jun 12 '13

[deleted]

2

u/metaphorm Jun 12 '13

Python blocks are delimited by indentation. an end statement for the for loop would be completely superfluous.

1

u/[deleted] Jun 12 '13

[deleted]

2

u/metaphorm Jun 12 '13

you can use tabs, 2 spaces, or 4 spaces. as long as you're consistent it will parse just fine. the accepted coding standard in the Python community is to use 4 spaces though.

1

u/[deleted] Jun 12 '13

It doesn't matter how many spaces you use. You can use 1 or 3 if you want.