Projects for the Beginner

Reply

Join Date: Oct 2004
Posts: 3,947
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 914
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Re: Projects for the Beginner

 
0
  #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 Quick reply to this message  
Join Date: Aug 2005
Posts: 1,514
Reputation: Ene Uran has a spectacular aura about Ene Uran has a spectacular aura about 
Solved Threads: 168
Ene Uran's Avatar
Ene Uran Ene Uran is offline Offline
Posting Virtuoso

Re: Projects for the Beginner

 
0
  #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 Quick reply to this message  
Join Date: Aug 2005
Posts: 1,514
Reputation: Ene Uran has a spectacular aura about Ene Uran has a spectacular aura about 
Solved Threads: 168
Ene Uran's Avatar
Ene Uran Ene Uran is offline Offline
Posting Virtuoso

Re: Projects for the Beginner

 
0
  #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 11:15 pm.
drink her pretty
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 3,947
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 914
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Re: Projects for the Beginner

 
0
  #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 Quick reply to this message  
Join Date: Jul 2005
Posts: 1,222
Reputation: bumsfeld will become famous soon enough bumsfeld will become famous soon enough 
Solved Threads: 137
bumsfeld's Avatar
bumsfeld bumsfeld is offline Offline
Nearly a Posting Virtuoso

Re: Projects for the Beginner

 
1
  #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 Quick reply to this message  
Join Date: Aug 2005
Posts: 1,514
Reputation: Ene Uran has a spectacular aura about Ene Uran has a spectacular aura about 
Solved Threads: 168
Ene Uran's Avatar
Ene Uran Ene Uran is offline Offline
Posting Virtuoso

Re: Projects for the Beginner

 
0
  #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.

  1. *****************
  2. * *
  3. * Happy coding! *
  4. * *
  5. *****************
drink her pretty
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 3,947
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 914
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Re: Projects for the Beginner

 
0
  #47
May 22nd, 2006
Take a list of words like:
  1. list1 = ['Herring', 'used', 'to', 'be', 'abundant', 'in', 'the', 'Atlantic', 'Ocean', 'then', 'herring', 'got', 'overfished']
and sort the list to show something like:
  1. ['Atlantic', 'Herring', 'Ocean', 'abundant', ... ]

Now sort the list case insensitive, so it looks more like:
  1. ['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 Quick reply to this message  
Join Date: Oct 2004
Posts: 3,947
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 914
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Re: Projects for the Beginner

 
0
  #48
May 22nd, 2006
A small project, but practical. Let's say you have a string of all the abbreviated months of the year:
  1. 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 ...
  1. ['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 9:09 pm.
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 3,947
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 914
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Re: Projects for the Beginner

 
0
  #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 4:20 pm. Reason: [code=html] tag
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 1,514
Reputation: Ene Uran has a spectacular aura about Ene Uran has a spectacular aura about 
Solved Threads: 168
Ene Uran's Avatar
Ene Uran Ene Uran is offline Offline
Posting Virtuoso

Re: Projects for the Beginner

 
1
  #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 Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC