Wiki Page, Summer Workshop Math and CS: CS: Python Programming - Turtle Graphics

Wiki Page
2016-07-27T21:00:16-06:00

This week we will learn how to allow users to enter data into the program and how to process that data. We will also learn about conditions and logical operators.

Here is the suggested weekly schedule:

Monday:

Practice using Inputs and While Loops

Programming Challenge: All Factors

Write a new program called allFactors that allows users to input one number. Use a While Loop to display all factors of that number. Recall that a factor is a number that divides other number.

For instance, if the user enters the value 24, the program output should be something like:

The factors of 24 are:
1, 2, 3, 4, 6, 8, 12

Tuesday

Learn how to use the Turtle Library by completing Lesson 8.1 in Pythonroom

Try to create different shapes: circle, rectangle, square, hexagon, and triangle!

Wednesday

Learn different Turtle Library functions by completing Lesson 8.2 in Pythonroom

Try to display your first initials using the Turtle! Use different colors for each initial!

Thursday

Learn how to create polygons with the Turtle by completing Lesson 8.4 in Pythonroom

Programming Challenge: Polygon Creator

Work with a peer and create a new program called polygonCreator that allows users to input two numbers and a color. The first number will correspond to the number of sides of the polygon and the second number will correspond to the length of each side (all sides will have the same length). The shape must be of the color entered by the user.