•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Python section within the Software Development category of DaniWeb, a massive community of 374,013 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,694 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Python advertiser:
Views: 51091 | Replies: 155
![]() |
•
•
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,333
Reputation:
Rep Power: 8
Solved Threads: 170
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 10:15 pm.
drink her pretty
•
•
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,333
Reputation:
Rep Power: 8
Solved Threads: 170
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.
***************** * * * Happy coding! * * * *****************
drink her pretty
•
•
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,333
Reputation:
Rep Power: 8
Solved Threads: 170
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!
list1 = ['Herring', 'used', 'to', 'be', 'abundant', 'in', 'the', 'Atlantic', 'Ocean', 'then', 'herring', 'got', 'overfished']
['Atlantic', 'Herring', 'Ocean', 'abundant', ... ]
Now sort the list case insensitive, so it looks more like:
['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!
•
•
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,333
Reputation:
Rep Power: 8
Solved Threads: 170
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.
str1 = "JanFebMarAprMayJunJulAugSepOctNovDec"
A later thought, how could you convert the above string to a list like ...
['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
Last edited by vegaseat : Sep 14th, 2006 at 8:09 pm.
May 'the Google' be with you!
•
•
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,333
Reputation:
Rep Power: 8
Solved Threads: 170
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 3:20 pm. Reason: [code=html] tag
May 'the Google' be with you!
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Python Marketplace
- 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: Trouble on migrate to 2.5.2 : PyNoAppError
- Next Thread: Playback TimeScale for tkSnack



Linear Mode