<div dir="ltr"><div>Hello,<br><br></div><div>Some more ideas:<br><br></div><div>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.<br>
<br></div><div>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...)<br></div><div><br></div><div>3. Read a string/file and draw that string on the screen in a whirlpool way. Counter-clockwise sample of the string: "abigsnake":<br>
</div><div>sgi<br></div><div>nab<br></div><div>ake<br></div><div><br></div><div>4. Print first n Fibonacci numbers.<br><br></div><div>5. Calculate Pi value for the specified accuracy. From wiki: "... irrational number, including <span class="">š</span>, can be represented by an infinite series of nested fractions...". So it won't be very complicated to implement.<br>
<br></div><div>6. Implement dos2unix/unix2dos<br><br></div><div>7. Calculator, that gets a string, put data into a tree and after calculates the value.<br></div><div><br></div><div></div>Vytas D.<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Feb 26, 2013 at 6:15 AM, Dave Angel <span dir="ltr"><<a href="mailto:davea@davea.name" target="_blank">davea@davea.name</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 02/25/2013 10:48 PM, eli m wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Friday, February 15, 2013 7:22:41 PM UTC-8, eli m wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Any small program ideas? I would prefer to stick to command line ones. Thanks.<br>
</blockquote>
<br>
Thank you guys for the suggestions. Any more?<br>
<br>
</blockquote>
<br></div>
There are all kinds of things you could do.  First, consider something that might be useful.<br>
<br>
1) checksum all the files in a directory tree, using various checksum algorithms.<br>
<br>
2) Convert one kind of file to another.<br>
<br>
3) Calculate time between two dates<br>
<br>
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.<br>

<br>
Then try something interesting:<br>
<br>
1) find the nth prime, for example the 1000th prime<br>
<br>
2) Find all perfect numbers under a trillion<br>
<br>
3) solve the puzzles on <a href="http://projecteuler.net" target="_blank">http://projecteuler.net</a><br>
<br>
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<span class="HOEnZb"><font color="#888888"><br>

<br>
<br>
-- <br>
DaveA<br>
-- <br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br></div>