Also, I have been looking for some exercises to do using Python, obviously (and unfortunately) they need to be at a beginner level. Or better if anyone wants to send me one to do I would be very grateful

I know a few exercises -- those that I have done. Some are beginner, some are difficult.
Use your discretion...


1) Make a program to compute the areas of several figures. Make it display a menu on startup, ask for a choice, and then compute the area of the figure chosen by asking for dimensions.

2) Good at math? Make a library module with three functions. First function -- calculate the derivative of a function passed as a parameter at a particular point. Should return float. Second function -- calculate definite integral; function, lower bound, and upper bound passed as parameters Should return float. Third function -- find the zeros of a function passed as a parameter. ## This is more difficult

3) Make a cute little joke -- How to keep a blonde busy. (Press enter) -- it loops forever

4) Make another script similiar to #1 using volumes instead of areas

5) Combine script one and script four

6) Use the os module to make a copy module that copies files -- similiar to, but with less functionality than shutil

7) Use the calender module to get the day of week function -- make the user input a date - parse the date, and return the day of the week. An extra to advance it a little. Use regular expressions to have any non-digit seperator.

8) Use the random module and a fibonacci sequence to generate long numbers that you can seemingly "memorize" i.e. random.randint(10,100) gives you say... 45... then the number would be 459437077415617853... strip off the tens digit when you add.

9) Make a library module containing functions such as get greatest common denominator of a sequence; lowest common multiple; factors of an integer; etc.

10) Download an extension package such as VPython or something and make a function grapher - - try making it a little more advanced than their example in the docs....

11) Make a grade program for teachers that asks for a grade, prints the percentage for that grade, and prints the percentage of the class i.e. average all of the grades for each grade added.

12) Use random to create a lottery scenario.

13) Make a simple word counter that takes a file name, open the file and split by whitespace and get length of resulting list


If you have any questions at all, run out of ideas, or these are too difficult, or something else, just ask. ;-)


Jacob

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to