dragons
  • Member for 8 years, 5 months
  • Last seen more than 7 years ago
  • Bulgaria
"Multi-key" dictionary
3 votes

My attempt, keep in my mind that I'm not close to any of pro's around here. for i in range(1, 101): if i < 15: my_coins[i] = None if 15 <= i < 30: my_coins[i] = '...

View answer
Python - Game Of Life
2 votes

Firstly read http://www.python.org/dev/peps/pep-0008/ and be Pythonic. You will be amazed how your code will get improve, write the new one as a new file and compare them. This is a huge brick of ...

View answer
Uploading a picture to Twitter over a period of time
1 votes

I think that defining a function inside of a function definition body is bad practice. For example you can have a class called Scheduler and define each function inside that class. I will leave the ...

View answer