| | |
Projects for the Beginner
![]() |
1
#201 Oct 15th, 2009
maybe a simple program to take a string and print it out backwards
Then extend the program to check whether a word is a palindrome, i.e can be read the same way in either direction.
Further extension is to configure the program to determine whether a whole sentence is a palindrome.
Hint: remove all non-letter characters from the string first, including whitespaces
Then extend the program to check whether a word is a palindrome, i.e can be read the same way in either direction.
Further extension is to configure the program to determine whether a whole sentence is a palindrome.
Hint: remove all non-letter characters from the string first, including whitespaces
0
#202 Oct 16th, 2009
write a program to find the factorial of a number.
Hint: the program can be written in two ways - using a proper algorithm, or using recursion algorithm
P.S sorry in this is already posted in the forum...i didn't read all previous posts
Hint: the program can be written in two ways - using a proper algorithm, or using recursion algorithm
P.S sorry in this is already posted in the forum...i didn't read all previous posts
0
#203 27 Days Ago
Design a simple text-based calculator program that does all the simple calculations like addition, subtraction, multiplication and division. The program should have a menu and should prompt the user to enter an operation and print the result from that operation. Simple interaction would look like this:
Hint: divide the program into separate functions for each operation and for the menu as well 
More advances stuff:
add the option conversion from binary to decimal and vice-versa
Python Syntax (Toggle Plain Text)
>>>Available operations: 1. Addition 2. Subtraction 3. Multiplication 4. Division Choose an operation: 1 Enter first number: 2 Enter second number: 3 2 + 3 = 5 Available operations: .... ....

More advances stuff:
add the option conversion from binary to decimal and vice-versa
Last edited by masterofpuppets; 27 Days Ago at 11:21 am.
0
#204 26 Days Ago
Here is a simple number project:
Prime numbers are positive integer numbers that are only divisible by itself or one. For example 2, 3, 5, 7, 11, 13, 17, are prime numbers, by convention 1 is not a prime number.
Palindrome numbers are numbers in which the decimal digits are the same read left to right as they are read right to left. For example 77, 131, 1441.
Your mission is to write a script that determines and prints all palindrome prime numbers less than 100000. Exclude the simple stuff like one digit numbers.
Prime numbers are positive integer numbers that are only divisible by itself or one. For example 2, 3, 5, 7, 11, 13, 17, are prime numbers, by convention 1 is not a prime number.
Palindrome numbers are numbers in which the decimal digits are the same read left to right as they are read right to left. For example 77, 131, 1441.
Your mission is to write a script that determines and prints all palindrome prime numbers less than 100000. Exclude the simple stuff like one digit numbers.
No one died when Clinton lied.
-2
#205 26 Days Ago
Write a python program which will take DNA map of parents and childs as input and determine whether the child belong to the parent or not
0
#206 25 Days Ago
This Tinter GUI toolkit program draws a rather ugly stick man ...
Should you be interested, experiment with the drawing and make Fred Stickman look more like a movie star.
python Syntax (Toggle Plain Text)
# exploring Tkinter's canvas drawing surface # draw lines and ovals to form a stick man # info at http://effbot.org/tkinterbook/canvas.htm try: # Python2 import Tkinter as tk except ImportError: # Python3 import tkinter as tk def body(w, h): """draw the oval for the body""" # an oval is drawn within a given rectangle # (x1, y1, x2, y2) upper left and lower right corner coordinates # of the rectangle the ellipse is bound by # calculate coordinates relative to width w and height h rect = (w//2-80, h//2-150, w//2+80, h//2+80) canvas.create_oval(rect, fill='red') def head(w, h): """draw the oval/circle for the head""" # if the bounding rectangle is a square a circle is drawn rect = (w//2-40, h//2-230, w//2+40, h//2-150) canvas.create_oval(rect, fill='red') def arms(w, h): """draw lines for right and left arm""" # draw line from coordinate points x1, y1 to x, y2 # left arm canvas.create_line(w//2-66, h//2-100, w//2-166, h//2-50) # right arm canvas.create_line(w//2+66, h//2-100, w//2+166, h//2-50) def legs(w, h): """draw lines for right and left legs""" # draw line from coordinate points x1, y1 to x, y2 # left leg canvas.create_line(w//2-55, h//2+50, w//2-76, h//2+190) # right leg canvas.create_line(w//2+55, h//2+50, w//2+76, h//2+190) # create the main window root = tk.Tk() root.title("Fred Stickman") # create the drawing canvas w = 400 h = 500 canvas = tk.Canvas(root, width=w, height=h, bg='white') canvas.pack() body(w, h) head(w, h) arms(w, h) legs(w, h) # start the GUI event loop root.mainloop()
May 'the Google' be with you!
0
#207 18 Days Ago
Create a test directory on your hard drive, copy some files and other directories into it. Now explore Python's file management functions and do the following:
1) list all the files in a given directory
2) list all the files in a given directory and its sub directories
3) list all the files with a given extension
4) copy files from one directory into another directory
5) total up all the file sizes in a given directory
6) find the largest or smallest file in a directory
7) find all the files past a certain cutoff date
8) search all the text files for a given word or sentence
9) change file names and creation dates
1) list all the files in a given directory
2) list all the files in a given directory and its sub directories
3) list all the files with a given extension
4) copy files from one directory into another directory
5) total up all the file sizes in a given directory
6) find the largest or smallest file in a directory
7) find all the files past a certain cutoff date
8) search all the text files for a given word or sentence
9) change file names and creation dates
May 'the Google' be with you!
•
•
Join Date: Nov 2009
Posts: 3
Reputation:
Solved Threads: 0
0
#208 5 Days Ago
1) Write a handy tool like a notes program (you must learn to handle files, strings and GUI)
2) Write a 'program in need' like an automated Gentoo portage updater (I'm making my own, and it's not quite easy, since I support mailing reports, and other portage related tools upgrading like layman, eix or similar)
3) Get an already made program and try to do your own implementation without watching the source code (this is a bit advanced) for example ¿anyone remembers the "Blade: The Edge of Darkness" game? It was done on python.
2) Write a 'program in need' like an automated Gentoo portage updater (I'm making my own, and it's not quite easy, since I support mailing reports, and other portage related tools upgrading like layman, eix or similar)
3) Get an already made program and try to do your own implementation without watching the source code (this is a bit advanced) for example ¿anyone remembers the "Blade: The Edge of Darkness" game? It was done on python.
![]() |
Similar Threads
- 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: Wing IDE & IronPython
- Next Thread: Printing dictionary sorted by value
| Thread Tools | Search this Thread |
.so abrupt address advanced advice anti apax applicationreengineering asp.net avogadro backend beginner bluetooth c++ calculator calling code college coordinates curved def development embed enter erp event examples excel file forms function google gui hints http ideas images input introduction itunes j2seprojects jaunty java javaprojects launcher library link linux list loan loop maze microsoft mouse movingimageswithpygame newb newbie number opensource output php prime programming projects push py2exe pygame pyglet pyqt python random remote return rubyconf silverlight slicenotation softwaredevelopment source string sum suthar syntax systemintegration table tlapse tooltip tricks tutorial ubuntu url urllib urllib2 variable vb.net ventrilo webdevelopemnt wikipedia wordgame wxpython xlwt







