City Kidz World

Skip to main content
Mobile Menu
Summer Program » Python (two 2 hour and 30 minute sessions each week for 7 weeks - Grades 6th through 12th)

Python (two 2 hour and 30 minute sessions each week for 7 weeks - Grades 6th through 12th)

Students will study Python Programming:
Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum and first released in 1991, Python has a design philosophy that emphasizes code readability, notably using significant whitespace. It provides constructs that enable clear programming on both small and large scales.
 
Students will bring their own computers.
 
Syllabus:

Detailed Course Information

Week 1

Getting Started

  • History of Python
  • Sample Python projects
  • Writing your first program
  • Saving and opening programs
  • Using comments

Moving your Turtle

  • Using the turtle module- pen()
  • Using the turtle module – forward(), backward(), left(), and right()
  • Changing the pen size and color
  • Penup() and pendown()
  • Drawing circles

Week 2

Math and Variables

  • Operators and Order of Operations
  • Variables
  • Revisiting the turtle with variables

 

Strings

  • Creating strings
  • Multi-line strings
  • Quotation marks inside strings
  • Embedding values inside strings
  • Multiplying strings
  • Using the input() function
  • Converting strings to numbers
  • Concatenating strings

 

Week 3

Reusing Code with Functions and Modules

  • Defining a function
  • Using functions
  • Returning a value
  • Variables and scope
  • Modules

Week 4

Conditional Statements

  • If statements
  • If-then-else statements
  • If and elseif statements
  • Multiple conditions and multiple if statements

Loops

  • Using for loops
  • Creating while loops
  • Nesting loops
  • Using the break command and avoiding infinite loops

Week 5

Using the Turtle with Loops and Functions

  • Drawing with loops
  • Drawing with Functions
  • Adding more color
  • Drawing spirals

Data Structures

  • Lists
  • Maps

 

Weeks 6-7

Introduction to Object Oriented Programming

  • Introduction to Object Oriented Programming
  • Classes and Objects
  • Instance Variables and Methods
  • Class Variables
  • Special Method Names
  • Class Containment and Default Parameters
  • Inheritance

Built-in Functions

  • Helpful built-in functions

Working with Files

  • Creating a file
  • Opening a file in Python
  • Writing to a file