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 370,604 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,043 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: 50642 | Replies: 154
Reply
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,312
Reputation: vegaseat is on a distinguished road 
Rep Power: 8
Solved Threads: 169
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
Kickbutt Moderator

Re: Projects for the Beginner

  #31  
Feb 9th, 2006
Let's assume you are working for the NSA and wanted to use Python to profile large amounts of e-mail that you are intercepting.

Write three fictitious e-mails, one a business e-mail, one a love/romance e-mail and one e-mail from Ladun Bing Osman to an accomplice that threatens your country.

Now use Python's text handling prowess to profile the three letters, so the dastardly letter can be identified. Check if fragments of words can do this.

Note: As of this time there are over 10 billion (yes, billion!) e-mails each day worldwide. Would be tough to read them all in person! To this you can add about 15 billion spam e-mails!
Last edited by vegaseat : Feb 13th, 2006 at 1:12 pm.
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

Re: Projects for the Beginner

  #32  
Feb 11th, 2006
Design a text driven adventure game. Draw a map with features like meadows, woods, mountains, rivers, lakes, caves, cottages and such. You know the map, the player does not! Start in the center and give a description in all directions.

Ask the player which direction she/he wants to go (E,W,S,N). Keep descriping the new environment according to your map and ask player for directions to go.

The goal is to find a treasure hidden somewhere on the map(give hints on how close the player is) and then find the way back to the start. Hopefully the player can remember some of the more distinctive features along the path taken.
Reply With Quote  
Join Date: Aug 2005
Location: England - York
Posts: 136
Reputation: a1eio is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 9
a1eio's Avatar
a1eio a1eio is offline Offline
Junior Poster

Re: Projects for the Beginner

  #33  
Feb 13th, 2006
hehe bumsfeld, sounds like a MUD your describing there

i got one for all you maths nuts out there...

re-invent the wheel!!!!

well not quite, the challenge is quite simple, make an algorithm or function or whatever that returns the square root of any number, WITHOUT USING ANY INBUILT SQUARE ROOT FUNCTION!!!!!

so essentially, re-invent the wheel.:mrgreen:

have fun guys,
a1eio
Reply With Quote  
Join Date: Apr 2006
Posts: 7
Reputation: mechdriver is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
mechdriver mechdriver is offline Offline
Newbie Poster

Re: Projects for the Beginner

  #34  
Apr 2nd, 2006
:lol: this will help me alittle bit i appreciate it im new to this place
Reply With Quote  
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,312
Reputation: vegaseat is on a distinguished road 
Rep Power: 8
Solved Threads: 169
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
Kickbutt Moderator

Re: Projects for the Beginner

  #35  
Apr 9th, 2006
Looking around the internet, I haven't found a nice hangman game yet written in Python. You can use a simple ASCII character graphics or go fancy with a GUI drawing canvas (Tkinter or PyGame). Might even be able to use a chopped up image and hang your less favorite politician or used car dealer.
May 'the Google' be with you!
Reply With Quote  
Join Date: Aug 2005
Posts: 939
Reputation: Ene Uran is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 62
Ene Uran's Avatar
Ene Uran Ene Uran is offline Offline
Posting Shark

Re: Projects for the Beginner

  #36  
Apr 17th, 2006
An electronic version of an Index Card File would be interesting, like a collection of recipes for cooking. You could search quickly using a limited set of keywords/titles, or slower using the general text of each card.

If you want to be fancy, you can add a feature to cook for two people, five people or even 12.
drink her pretty
Reply With Quote  
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,312
Reputation: vegaseat is on a distinguished road 
Rep Power: 8
Solved Threads: 169
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
Kickbutt Moderator

Re: Projects for the Beginner

  #37  
Apr 19th, 2006
I am thinking about a "snappy comeback" program. You enter a question and the program analyses the question for certain verbs or nouns and tries to come up with an answer. Could be silly or fun!
May 'the Google' be with you!
Reply With Quote  
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,312
Reputation: vegaseat is on a distinguished road 
Rep Power: 8
Solved Threads: 169
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
Kickbutt Moderator

Solution Re: Projects for the Beginner

  #38  
May 9th, 2006
Create a number to word converter, you type in a number like 1776 and your program returns the number spelled in words (English or whatever language you like). Should be a simple project and a good exercise for your Python skills.

For an additional challenge, could be expanded to spell out something like $1,545,299.45!

Just to help you out with the somewhat larger numbers, here is some Python help ...
  1. # english words for multiples of thousand
  2. thousands = [
  3. "thousand",
  4. "million",
  5. "billion",
  6. "trillion",
  7. "quadrillion",
  8. "quintillion",
  9. "sextillion",
  10. "septillion",
  11. "octillion",
  12. "nonillion",
  13. "decillion",
  14. "undecillion",
  15. "duodecillion",
  16. "tredecillion",
  17. "quattuordecillion",
  18. "sexdecillion",
  19. "septendecillion",
  20. "octodecillion",
  21. "novemdecillion",
  22. "vigintillion"]
  23.  
  24. t = '1,000'
  25. for s in thousands:
  26. print "%-18s %s" % (s, t)
  27. t += ',000'
Click on "Toggle Plain Text" so you can highlight and copy the code to your editor.
Last edited by vegaseat : Mar 1st, 2007 at 3:19 pm. Reason: code=python remark
May 'the Google' be with you!
Reply With Quote  
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,312
Reputation: vegaseat is on a distinguished road 
Rep Power: 8
Solved Threads: 169
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
Kickbutt Moderator

Solution Re: Projects for the Beginner

  #39  
May 9th, 2006
Just a silly program, take a text and reverse the starting and ending letter of each word (having 2 letters and more), then see if you can still read it. Test it on your friends. Don't overdo it, or you will not have any friends left!

If you can read that result easily, go on and reverse the first two with the last two letters of each word (4 letters and above). Or reverse letters 1 and 2, you get my drift. How far can you go and still read the text? Maybe you can scramble your next e-mail that way, it would make it harder for the government to read it.
May 'the Google' be with you!
Reply With Quote  
Join Date: Aug 2005
Posts: 939
Reputation: Ene Uran is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 62
Ene Uran's Avatar
Ene Uran Ene Uran is offline Offline
Posting Shark

Solution Re: Projects for the Beginner

  #40  
May 13th, 2006
Make a Molecular Weight calculator. The user enters for instance the formula for salt NaCl and the program looks up the atomic weight of sodium and chlorine and adds them up.

A dictionary with element:weight pairs would make it easy. You also have to design some kind of parser that figures out molecules like water H2O. Here you have to add up hydrogen twice and oxygen once.

Things get a little more challenging for the parser with toluene, since the user could enter C7H8 or C6H5CH3. Elements like silicon Si have to be entered that way and not as SI, since your parser would look at it as a combination of sulfur S and iodine I.

Since the right data is already there, you can expand the program to do elemental analysis, giving the percent of each element in the formula. Happy coding!
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 6:30 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC