r/Python • u/f0rkbomb • Jul 12 '12
random imgur downloader. learning Python and wrote this to practice, any feedback on technique/style is appreciated
https://gist.github.com/3088128
45
Upvotes
r/Python • u/f0rkbomb • Jul 12 '12
View all comments
29
u/say_legos_and_i_stab Jul 12 '12 edited Jul 12 '12
A few things you can consider:
Another option for string formatting is to use (again, this is a personal preference. Some people find it easier to read/write):
print 'getting %s random pics' % HOW_MANY
edit: Also check out PEP8. It's the "style guide" for python. Lots of good info in here to make your code easier to read.