# I'm learning Python. What should I program?

If you have a personal itch to scratch, it’s probably best to scratch it. You’ll probably be more interested and motivated to program if it’s something you want to accomplish.

However, if you don’t have any ideas, you can try the Python Challenge:

http://www.pythonchallenge.com/

You can also try doing the Ruby Quizzes in Python:

http://www.rubyquiz.com

CATEGORY: tutor

Comment:

Games:

• Guess the number (both ways, you put a number, machine guesses; machine puts number, you guess)
• Tick tack toe (no gui, of course)
• Card games (like blackjack, for instance)
• Hanoi's tower (maybe with auto-solving algorithm)

OO problems:

The idea would be to make some problems that are easily solvable by using OOP. Like a system to keep track of trucks, each truck having a specific motor and some attributes, a menu to input more trucks, sorting trucks by some attribute (color, age, motor class, max. weight). We could also make an example solution.

• Resistor objects. Adding them equals putting them in series, multiply them to put them in parallel. Calculate total resistance. (should use __add__, etc). Maybe remember how it was made and be able to print the circuit.

Scripts:

• Go through directories and return size, or print all files of type x.
• Take input (optparse?) and do something with that. Maybe take two numbers plus option (+ - * /) and do that operation.

Maths:

• Calculate Fibonacci up to x. (Maybe cache results? Can be a bit hard...)
• Enter series of numbers, calculate max., min, sum, average. Save those numbers to a file. Read from file.

Gui Games:

• "Lights" - You have a 3x3 matrix, each one with two states (on or off), your goal is to turn them all on or off. When you click one "light" the one clicked and it's neighbours (up,down, left, right) change state.

(From an e-mail by Ismael Garrido)

Posted by

Comment:

Useless Python http://www.uselesspython.com/ is back online. It has some challenges and older programming contests. There's plenty of ideas there.

Posted by

rendered by a django application. hosted by webfaction.