•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Python section within the Software Development category of DaniWeb, a massive community of 397,646 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,371 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: 54217 | Replies: 162
![]() |
Try this: write a program that tests someones reaction times and records them in a text file and then makes comparisons to see the level of improvment or the lack of.
Make it idiot proof and someone will make a better idiot.
Check out my Blog - paulthom12345.blogspot.com
Check out my Blog - paulthom12345.blogspot.com
With so much hoopla about hydrogen as fuel of the future let's do this:
Write a Python program that calculates the energy obtained from burning one liter of hydrogen (H2) gas, as compared to one liter of methane gas or propane gas.
Write a Python program that calculates the energy obtained from burning one liter of hydrogen (H2) gas, as compared to one liter of methane gas or propane gas.
Never argue with idiots, they'll just bring you down to their level and beat you with their experience.
•
•
Join Date: Jun 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
After you got the basics of Python under your belt, the best way to get a good knowledge of the language and improve your coding skills is to start on a project you are interested in. This sticky is dedicated to a list of just such projects.
If you know a good project, please post it here. If you have questions, start your own thread and don't clutter the sticky.
i have a good project for beginers of python if you want to join me then mail me back at my yahoo id that is off_gl(@)yahoo(.)com
subject want to join project
Last edited by pratap.iiit : Jun 30th, 2008 at 8:36 pm.
You can create a relatively safe numeric input using this function:
Your mission, should you accept, is to limit the numeric input to a number within a given range.
python Syntax (Toggle Plain Text)
def get_num(prompt="Enter a number: "): """ the function will loop until a number has been entered, accepts int or float, returns a float """ while True: try: return float(raw_input(prompt)) except ValueError: print "Numeric value required!" # test it ... print get_num() price = get_num("Enter the price: ") print price
No one died when Clinton lied.
Oh the price of petrol!
I just made a back of the envelop calculation from the latest German Automobile Club numbers. As of July 15, 2008 the price of the liter petrol there is 1.55 Euro. The price in the US is $4.25 per gallon. A US gallon is 3.785 liter and the Euro costs US $1.60. It would be nice to make a small Python program to compare the cost of petrol there to the price of petrol in the US.
I calculated the US price to be $1.20 per liter or 0.75 Euro per liter. If you would travel to Germany it would cost you US $9.39 per gallon. Your program ought to spit this out quickly.
I just made a back of the envelop calculation from the latest German Automobile Club numbers. As of July 15, 2008 the price of the liter petrol there is 1.55 Euro. The price in the US is $4.25 per gallon. A US gallon is 3.785 liter and the Euro costs US $1.60. It would be nice to make a small Python program to compare the cost of petrol there to the price of petrol in the US.
I calculated the US price to be $1.20 per liter or 0.75 Euro per liter. If you would travel to Germany it would cost you US $9.39 per gallon. Your program ought to spit this out quickly.
Last edited by sneekula : Jul 15th, 2008 at 11:04 am.
No one died when Clinton lied.
•
•
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,414
Reputation:
Rep Power: 9
Solved Threads: 173
Using the wxPython GUI toolkit example in post ...
http://www.daniweb.com/forums/post651930-38.html
... come up with a program to create a collage of images.
http://www.daniweb.com/forums/post651930-38.html
... come up with a program to create a collage of images.
May 'the Google' be with you!
•
•
Join Date: Feb 2008
Posts: 18
Reputation:
Rep Power: 1
Solved Threads: 0
1. Create a program that shutsdown/loggsoff a user after a period of inactivity.
Hint: Use the PyHook module at http://mindtrove.info/articles/monit...t-with-pyhook/ and the os module
2. Create a function that filters obcenities out of typed speech like in some IRC or AIM chatrooms.
Hint: Use the standard re module (may make it easier)
3.Ever see The Number 23? Ask a user for their age, birthday, address, name,Phone numbers etc... and see if it can find any 23's or 32's
Hint: Change letters to numbers(duh!) a = 1, b = 2, c = 3...
4. I've heard that it is possible to create a brainf*ck compiler/interpreter in python pretty easily. Try it out.
Hint: http://linuxgazette.net/issue79/divakaran.html http://en.wikipedia.org/wiki/Brain****
5. Create an application that allows you to chat with someone directly over the internet
Hint: you need the socket module
Hint: Use the PyHook module at http://mindtrove.info/articles/monit...t-with-pyhook/ and the os module
2. Create a function that filters obcenities out of typed speech like in some IRC or AIM chatrooms.
Hint: Use the standard re module (may make it easier)
3.Ever see The Number 23? Ask a user for their age, birthday, address, name,Phone numbers etc... and see if it can find any 23's or 32's
Hint: Change letters to numbers(duh!) a = 1, b = 2, c = 3...
4. I've heard that it is possible to create a brainf*ck compiler/interpreter in python pretty easily. Try it out.
Hint: http://linuxgazette.net/issue79/divakaran.html http://en.wikipedia.org/wiki/Brain****
5. Create an application that allows you to chat with someone directly over the internet
Hint: you need the socket module
"There are only two industries that refer to their customers as 'users'." (Edward Tufte)
"There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."(C.A.R. Hoare)
"There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."(C.A.R. Hoare)
•
•
Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,414
Reputation:
Rep Power: 9
Solved Threads: 173
Everyone loves a game. So why not make a series of Dice games such as Two up and Yahtzee.
For an extra challenge make an AI to play with and also add a GUI!
For an extra challenge make an AI to play with and also add a GUI!
Make it idiot proof and someone will make a better idiot.
Check out my Blog - paulthom12345.blogspot.com
Check out my Blog - paulthom12345.blogspot.com
![]() |
•
•
•
•
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: simple question
- Next Thread: Fancy Text? (pretty text-based application)



Linear Mode