Wiki Page, Summer Workshop Math and CS: CS: Python Programming Intro

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

This week we will start learning how to create programs using Python programming language!

Here is a tentative schedule of the activities we will be doing:

Monday:

Intro to Programming using CodeCombat (Complete levels 1 to 16 only)

Once you complete the first 16 levels, you should be able to explain the following code:

enemy1 = "Kratt"
while True:
    hero.attack(enemy1)
    hero.attack("Gert")

Tuesday:

Set up your account in Pythonroom,

learn about variables, and

complete lessons 1.1, 1.2, and 1.3 in Pythonroom.

By the end of the lessons, you should be able to identify which of the following variable names and assignations are valid in Python:

memorial-day = "may 30"
memorial day = "may 30"
30May = "memorial day"
may30 = Memorial Day
may_30 = "Memorial Day"

Wednesday:

Learn about data types and complete lessons 1.4 and 1.5 in Pythonroom

Thursday:

Learn about Math Operations by completing lessons 2.1 and 2.2 in Pythonroom
Learn about Inputs by completing lesson 3.1 in Pythonroom

Programming Challenge: Unit Conversion

Work with a peer and write a new program called unit_conversion that allows users to input an amount in inches. The program should display the corresponding conversion of that amount in:

feet

yards

centimeters

For instance, if the user entered 36, the program should displayed something like:

36 inches are equivalent to:
3 feet
1 yard
91.44 cm