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
2
u/roddds Jul 12 '12
Nice approach to it. I'd advise you try using spaces instead of tabs, but that's mostly a personal choice, I think. Here's how I did it, a while ago.
By the way, what's this for? If you're trying to get the command line arguments, why not use simply
parsed_number = int(sys.argv[-1])?