10-19-2009, 01:34 PM
If your beginning python, try to make some of these. It depends how you like to learn. But this helped be a lot, because I like learning from applying what I know, and if you don't now how to do something, It gives you something you can ask or look up.
1. Prompt the user to input a number, and if it is not a number reprompt.
2. Prompt the user to enter a word, and if it is not a single word reprompt.
3. Write the user's input to a file.
4. Read the user's input from a file.
5. Append the user's input to an existing file.
6. Prompt for an existing path and file name, if it doesn't exist reprompt.
7. Prompt for a new path and file name, if it does exist reprompt.
8. Read data from a file, sort it, and write it back out.
9. Build a grid (columns and rows) and fill it with data (Address book, Birthday list, whatever).
10. Create a simple game.
This is from python-forum. I'm currently working on #6
1. Prompt the user to input a number, and if it is not a number reprompt.
2. Prompt the user to enter a word, and if it is not a single word reprompt.
3. Write the user's input to a file.
4. Read the user's input from a file.
5. Append the user's input to an existing file.
6. Prompt for an existing path and file name, if it doesn't exist reprompt.
7. Prompt for a new path and file name, if it does exist reprompt.
8. Read data from a file, sort it, and write it back out.
9. Build a grid (columns and rows) and fill it with data (Address book, Birthday list, whatever).
10. Create a simple game.
This is from python-forum. I'm currently working on #6