Allan Didier

Python Projects

One of the best, free Python tutorials I have found is theCode Academy: Learn Python 2 tutorial. Sign up using your school gmail account if you want. You can follow this tutorial for a series of projects for this class. Below is a breakdown of projects and a progression that you can follow. I generally recommend that you follow the tutorial for a while and then break off and write your own code. The tutorial tells you everything you need to do, so you don’t get any practice writing your own code. You learn better by writing your own code every now and then. 

Project 1

Do Lessons 1 through 3 in the tutorial.

  1. Python Syntax
  2. Strings and Console Output
  3. Conditionals and Control Flow. (PygLatin)

You can show Mr. Didier the code or upload screenshots of your code to Google Classroom to demonstrate that you have done the code. 

Project 2

Write your own code. Create a Rock, Paper, Scissors game. Ask the user to input either Rock, Paper, or Scissors. Have the computer randomly choose a number 0-2 (or 1-3), 0 = Rock, 1 = Paper, 2 = Scissors. Determine who wins. Output both human and computer choices as well as who won. 

Project 3

Do Lessons 4 through 6 in the tutorial.

  • 4. Functions (Taking a vacation: trip cost calculation)
  • 5. Lists and Dictionaries (A day at the Supermarket)
  • 6, Student Becomes the Teacher (Grade calculator)

You can show Mr. Didier the code or upload screenshots of your code to Google Classroom to demonstrate that you have done the code. 

Project 4

Write your own code. Create an Area Calculator

  1. Ask the user to enter a shape.
  2. Calculate the area and circumference of the shape.
  3. Use functions to calculate the information for each shape.
  4. To make it harder, make the shapes 3D and calculate the volume.

Project 5

Do Lessons 7 through 9 in the tutorial.

  • 7. Lists and Functions (Battleship)
  • 8 Loops (Practice Makes Perfect, prime, factorials, etc.)
  • 9 Exam Statistics (Computing grades, averages, sums, etc.)

You can show Mr. Didier the code or upload screenshots of your code to Google Classroom to demonstrate that you have done the code. 

Project 6

Write your own code. Make the Battleship game you wrote in Lesson 7 a little more difficult. Instead of having a ship of size one, make it a ship of size two or three. Make sure you have to hit all the parts to win. Placing the ship inbounds will be the tricky part. 

Project 7

Finish the tutorial. Do Lessons 10 through 12 in the tutorial.

  • 10 Advanced Topics in Python (Bitwise Operators) – This chapter can be skipped if you want.
  • 11 Introduction to Classes
  • 12 File Input and Output

You can show Mr. Didier the code or upload screenshots of your code to Google Classroom to demonstrate that you have done the code. 

Other Code Projects

When you get tired of following programming tutorials, break away from them to try some of these other code projects