User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,333
Reputation: vegaseat is on a distinguished road 
Rep Power: 8
Solved Threads: 170
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
Kickbutt Moderator

Solution Re: Projects for the Beginner

  #41  
May 13th, 2006
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
May 'the Google' be with you!
Reply With Quote  
Join Date: Aug 2005
Posts: 949
Reputation: Ene Uran is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 64
Ene Uran's Avatar
Ene Uran Ene Uran is offline Offline
Posting Shark

Re: Projects for the Beginner

  #42  
May 14th, 2006
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
Reply With Quote  
Join Date: Aug 2005
Posts: 949
Reputation: Ene Uran is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 64
Ene Uran's Avatar
Ene Uran Ene Uran is offline Offline
Posting Shark

Re: Projects for the Beginner

  #43  
May 14th, 2006
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.
Last edited by vegaseat : May 15th, 2006 at 10:15 pm.
drink her pretty
Reply With Quote  
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,333
Reputation: vegaseat is on a distinguished road 
Rep Power: 8
Solved Threads: 170
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
Kickbutt Moderator

Re: Projects for the Beginner

  #44  
May 15th, 2006
Some people are indubitably spooked by a Friday falling on the 13th of the month. Write a program to list all the Friday the 13th of a given year.

(Hint: look at modules datetime and calendar)
May 'the Google' be with you!
Reply With Quote  
Join Date: Jul 2005
Location: France
Posts: 914
Reputation: bumsfeld is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 41
bumsfeld's Avatar
bumsfeld bumsfeld is offline Offline
Posting Shark

Solution Re: Projects for the Beginner

  #45  
May 18th, 2006
Write a hex-dump program, where you read a file byte by byte and display the value as a hexadecimal number (base 16). Display about 16 bytes on each row and in a second column next to it show any printable characters, useful for text.
Reply With Quote  
Join Date: Aug 2005
Posts: 949
Reputation: Ene Uran is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 64
Ene Uran's Avatar
Ene Uran Ene Uran is offline Offline
Posting Shark

Re: Projects for the Beginner

  #46  
May 21st, 2006
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.

*****************
*               *
* Happy coding! *
*               *
*****************
drink her pretty
Reply With Quote  
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,333
Reputation: vegaseat is on a distinguished road 
Rep Power: 8
Solved Threads: 170
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
Kickbutt Moderator

Re: Projects for the Beginner

  #47  
May 22nd, 2006
Take a list of words like:
list1 = ['Herring', 'used', 'to', 'be', 'abundant', 'in', 'the', 'Atlantic', 'Ocean', 'then', 'herring', 'got', 'overfished']
and sort the list to show something like:
['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!
Reply With Quote  
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,333
Reputation: vegaseat is on a distinguished road 
Rep Power: 8
Solved Threads: 170
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
Kickbutt Moderator

Re: Projects for the Beginner

  #48  
May 22nd, 2006
A small project, but practical. Let's say you have a string of all the abbreviated months of the year:
str1 = "JanFebMarAprMayJunJulAugSepOctNovDec"
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 ...
['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
In other words, split the string at the capital letters.
Last edited by vegaseat : Sep 14th, 2006 at 8:09 pm.
May 'the Google' be with you!
Reply With Quote  
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,333
Reputation: vegaseat is on a distinguished road 
Rep Power: 8
Solved Threads: 170
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
Kickbutt Moderator

Re: Projects for the Beginner

  #49  
May 22nd, 2006
Hyper Text Markup Language (HTML) is the backbone of a typical web page. Here is a very simple example:
  1. <HTML>
  2. <HEAD>
  3. <TITLE>Link Lesson 1: Link Text</TITLE>
  4. </HEAD>
  5. <BODY>
  6. The <A HREF="http://www.google.com">The Google Site</A> can be used to search
  7. a large number of things, including your favorite edible rhizome.
  8. </BODY>
  9. </HTML>
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 ">".
Last edited by vegaseat : Mar 1st, 2007 at 3:20 pm. Reason: [code=html] tag
May 'the Google' be with you!
Reply With Quote  
Join Date: Aug 2005
Posts: 949
Reputation: Ene Uran is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 64
Ene Uran's Avatar
Ene Uran Ene Uran is offline Offline
Posting Shark

Re: Projects for the Beginner

  #50  
May 30th, 2006
Write a program that gives a list of 100 unique random integers in the range of 0 to 999.
drink her pretty
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Python Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Python Forum

All times are GMT -4. The time now is 10:58 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC