Re: [Tutor] ideas for a simple program

2011-01-25 Thread Steven D'Aprano
walter weston wrote: can I have some good ideas for simple programs Some more ideas... Take a built-in Python command, and try to duplicate it in pure Python. E.g.: # Untested. def my_len(obj): # Like Python's len() function, only slower. try: return obj.__len__() excep

Re: [Tutor] ideas for a simple program

2011-01-25 Thread Brett Ritter
On Tue, Jan 25, 2011 at 10:18 PM, Steven D'Aprano wrote: > Or a program to find anagrams. A great exercise in learning how different string operations perform is to search a text file for the largest palindrome string. I recall running one on the Constitution where a good program could do it in

Re: [Tutor] ideas for a simple program

2011-01-25 Thread Steven D'Aprano
walter weston wrote: can I have some good ideas for simple programs, What are you interested in? Find something you like to do, and write a program to help you do it. Interested in maths? Write a program to generate prime numbers, or to search for amicable numbers. Look at Project Euler, a

Re: [Tutor] ideas for a simple program

2011-01-25 Thread Steven D'Aprano
ian douglas wrote: With an Email address like "hacker0100", your best bet might be to do what we told another user just a few days ago: Ha ha, it's funny how different people interpret email addresses differently. *I* look at an email address "hacker0100" and think "wannabe". No offense Walte

Re: [Tutor] ideas for a simple program

2011-01-25 Thread Bill Allen
For a simple programming project that probably has just enough complexity to be interesting, google for Conway's Game of Life. You'll find an algorithm to use. --Bill On Tue, Jan 25, 2011 at 11:25, walter weston wrote: > > can I have some good ideas for simple programs, I have come to rea

Re: [Tutor] ideas for a simple program

2011-01-25 Thread Brett Ritter
On Tue, Jan 25, 2011 at 12:25 PM, walter weston wrote: > can I have some good ideas for simple programs, I have come to realize the > hardest part of programming is not having a project to do and having to > think of one haha There are two ways to approach this: 1) Think of something that you'd

Re: [Tutor] ideas for a simple program

2011-01-25 Thread ian douglas
With an Email address like "hacker0100", your best bet might be to do what we told another user just a few days ago: Find an open-source project, and try to add a new feature to it, or fix a bug in it. That way you learn about the language, the project, and could get your name out there as a c

[Tutor] ideas for a simple program

2011-01-25 Thread walter weston
can I have some good ideas for simple programs, I have come to realize the hardest part of programming is not having a project to do and having to think of one haha ___ Tutor maillist - Tutor@python.org To