Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #39947
| References | <b785a583-a10d-4203-882f-c09c5610ce75@googlegroups.com> <1cff6513-4d67-4fdc-a86d-945635859683@googlegroups.com> <512C52FC.5030508@davea.name> |
|---|---|
| Date | 2013-02-26 13:21 +0000 |
| Subject | Re: Small program ideas |
| From | "Vytas D." <vytasd2013@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2542.1361884905.2939.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
Hello, Some more ideas: 1. Implement sin(), cos(), tan() etc. The accuracy could be supplied as a parameter to the program. The correctness can be checked very easily with implemented versions. 2. Read a string/file and look for palindromes (the group of words that can read from both ends: A toyota, Madam in Eden, I'm Adam...) 3. Read a string/file and draw that string on the screen in a whirlpool way. Counter-clockwise sample of the string: "abigsnake": sgi nab ake 4. Print first n Fibonacci numbers. 5. Calculate Pi value for the specified accuracy. From wiki: "... irrational number, including π, can be represented by an infinite series of nested fractions...". So it won't be very complicated to implement. 6. Implement dos2unix/unix2dos 7. Calculator, that gets a string, put data into a tree and after calculates the value. Vytas D. On Tue, Feb 26, 2013 at 6:15 AM, Dave Angel <davea@davea.name> wrote: > On 02/25/2013 10:48 PM, eli m wrote: > >> On Friday, February 15, 2013 7:22:41 PM UTC-8, eli m wrote: >> >>> Any small program ideas? I would prefer to stick to command line ones. >>> Thanks. >>> >> >> Thank you guys for the suggestions. Any more? >> >> > There are all kinds of things you could do. First, consider something > that might be useful. > > 1) checksum all the files in a directory tree, using various checksum > algorithms. > > 2) Convert one kind of file to another. > > 3) Calculate time between two dates > > 4) Write some part of a backup system. For example, copy files from a > directory tree into a specified directory, stopping when the size totals > N.N gig, and keeping track of which files have been so processed, so that > after burning that directory to DVD, you can repeat the process. As a > bonus, add a utility & datafile to the top of that directory, so that the > DVD can be self-checking. > > Then try something interesting: > > 1) find the nth prime, for example the 1000th prime > > 2) Find all perfect numbers under a trillion > > 3) solve the puzzles on http://projecteuler.net > > 4) Build a spell checker, using a combination of a standard > dictionary-list and custom entries. Bonus question - Make it smart enough > to only spell-check comments and literal strings, when applied to files > with an extension of .py > > > -- > DaveA > -- > http://mail.python.org/**mailman/listinfo/python-list<http://mail.python.org/mailman/listinfo/python-list> >
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Small program ideas eli m <techgeek201@gmail.com> - 2013-02-15 19:22 -0800
Re: Small program ideas Mitya Sirenef <msirenef@lightbird.net> - 2013-02-15 22:52 -0500
Re: Small program ideas eli m <techgeek201@gmail.com> - 2013-02-15 19:57 -0800
Re: Small program ideas Mitya Sirenef <msirenef@lightbird.net> - 2013-02-15 23:19 -0500
Re: Small program ideas Mark R Rivet <markrrivet@aol.com> - 2013-02-16 12:42 -0500
Re: Small program ideas eli m <techgeek201@gmail.com> - 2013-02-15 19:57 -0800
Re: Small program ideas Mark R Rivet <markrrivet@aol.com> - 2013-02-16 12:40 -0500
Re: Small program ideas eli m <techgeek201@gmail.com> - 2013-02-25 19:48 -0800
Re: Small program ideas Dave Angel <davea@davea.name> - 2013-02-26 01:15 -0500
Re: Small program ideas eli m <techgeek201@gmail.com> - 2013-02-26 14:47 -0800
Re: Small program ideas Joshua Landau <joshua.landau.ws@gmail.com> - 2013-02-27 00:22 +0000
Re: Small program ideas eli m <techgeek201@gmail.com> - 2013-02-26 16:47 -0800
Re: Small program ideas eli m <techgeek201@gmail.com> - 2013-02-26 16:47 -0800
Re: Small program ideas Dave Angel <davea@davea.name> - 2013-02-26 22:27 -0500
Re: Small program ideas Chris Angelico <rosuav@gmail.com> - 2013-02-27 17:18 +1100
Re: Small program ideas eli m <techgeek201@gmail.com> - 2013-02-26 14:47 -0800
Re: Small program ideas "Vytas D." <vytasd2013@gmail.com> - 2013-02-26 13:21 +0000
Re: Small program ideas Neil Cerutti <neilc@norwich.edu> - 2013-02-26 14:32 +0000
Re: Small program ideas Matej Cepl <mcepl@redhat.com> - 2013-02-26 14:21 +0100
Re: Small program ideas eli m <techgeek201@gmail.com> - 2013-03-18 16:51 -0700
Re: Small program ideas Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-03-19 00:56 +0000
Re: Small program ideas PMT <d12123176@mydit.ie> - 2013-03-28 11:46 -0700
Re: Small program ideas Neil Cerutti <neilc@norwich.edu> - 2013-03-29 13:43 +0000
csiph-web