| | |
Projects for the Beginner
![]() |
Write a biorhythm program in Python. You have to input the birthday and present day, and then calculate the physical, emotional and intellectual values.
For more details on biorhythms see:
http://en.wikipedia.org/wiki/Biorhythm
For more details on biorhythms see:
http://en.wikipedia.org/wiki/Biorhythm
May 'the Google' be with you!
How about a program to calculate the phase of the moon. I have seen a C program to do this, Python should be a lot easier, once you know the formula. Google for the formula, do a console version or embellish with some graphics if you want to. Both Tkinter and wxPython allow you to draw on a canvas.
drink her pretty
Make a crayon drawing or coloring program for the younger relatives. Python and Tkinter should have all the things you need. I know I have seen a doodle program somewhere, that could be the start.
A note from vegaseat: The wxPython docs and demo download has a doodle program you can build upon.
A note from vegaseat: The wxPython docs and demo download has a doodle program you can build upon.
Last edited by vegaseat; May 15th, 2006 at 11:15 pm.
drink her pretty
Write a Python function that creates a box outlined by stars/asterisks (*). The function should display a box of x stars width and y stars height.
The next step would be to put some text into the box maintaining the star outline.
The ultimate function should take a text string and auto-outline it with the star box.
The next step would be to put some text into the box maintaining the star outline.
The ultimate function should take a text string and auto-outline it with the star box.
Python Syntax (Toggle Plain Text)
***************** * * * Happy coding! * * * *****************
drink her pretty
Take a list of words like:
and sort the list to show something like:
Now sort the list case insensitive, so it looks more like:
Reverse this sorted list.
Sort the list by the lenght of the word, shortest word first.
Make the words in the list unique, note that Herring and herring are considered the same word.
Just a Python brain teaser, have fun!
Python Syntax (Toggle Plain Text)
list1 = ['Herring', 'used', 'to', 'be', 'abundant', 'in', 'the', 'Atlantic', 'Ocean', 'then', 'herring', 'got', 'overfished']
Python Syntax (Toggle Plain Text)
['Atlantic', 'Herring', 'Ocean', 'abundant', ... ]
Now sort the list case insensitive, so it looks more like:
Python Syntax (Toggle Plain Text)
['abundant', 'Atlantic', 'be', 'got', ... ]
Reverse this sorted list.
Sort the list by the lenght of the word, shortest word first.
Make the words in the list unique, note that Herring and herring are considered the same word.
Just a Python brain teaser, have fun!
May 'the Google' be with you!
A small project, but practical. Let's say you have a string of all the abbreviated months of the year:
How can you extract the abbreviated month from that string given the number of the month (eg. 8 = "Aug")?
A later thought, how could you convert the above string to a list like ...
In other words, split the string at the capital letters.
Python Syntax (Toggle Plain Text)
str1 = "JanFebMarAprMayJunJulAugSepOctNovDec"
A later thought, how could you convert the above string to a list like ...
Python Syntax (Toggle Plain Text)
['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
Last edited by vegaseat; Sep 14th, 2006 at 9:09 pm.
May 'the Google' be with you!
Hyper Text Markup Language (HTML) is the backbone of a typical web page. Here is a very simple example:
Write a Python function that extracts the url "http://www.google.com" from the HTML code. In other words, extract a substring from a text that is between two given substrings, here "=" and ">".
html Syntax (Toggle Plain Text)
<HTML> <HEAD> <TITLE>Link Lesson 1: Link Text</TITLE> </HEAD> <BODY> The <A HREF="http://www.google.com">The Google Site</A> can be used to search a large number of things, including your favorite edible rhizome. </BODY> </HTML>
Last edited by vegaseat; Mar 1st, 2007 at 4:20 pm. Reason: [code=html] tag
May 'the Google' be with you!
![]() |
Similar Threads
- Ideal project for a beginner? (Python)
- Hep finding C++ Projects (Python)
- Help finding C++ Projects (C++)
- New task from Projects for the beginner: (Python)
Other Threads in the Python Forum
- Previous Thread: numpy array rows and columns
- Next Thread: Help with my Blackjack Program
| Thread Tools | Search this Thread |
abrupt alarm ansi anti approximation array assignment backend beginner binary bluetooth builtin calculator character cmd converter countpasswordentry curved customdialog cx-freeze dan08 data decimals dictionary directory dynamic exe file float format function generator getvalue gnu graphics halp heads homework http ideas input ip itunes java leftmouse line linux list lists loop maze module mouse mysqlquery number numbers output parsing path pointer prime programming progressbar push py2exe pygame python random recursion schedule screensaverloopinactive script scrolledtext slicenotation sqlite ssh statistics string strings sudokusolver terminal text thread time tlapse tuple twoup ubuntu unicode urllib urllib2 variable ventrilo vigenere web webservice wikipedia write wxpython xlib






