Feedback Pace Different ideas for delivery Debugging strategies Sabotage Vocabulary / terminology
Feedback Python isn’t scary
Python Camp Session 2: Computational Thinking and Problem Solving Data Types Variables Sequence / Selection / Iteration
Dry Run this program age = input(“What is your age? “) double = age + age print(double) Starter - have students guess, then test, then discuss reasons for the error.
Solution 1 age = input(“What is your age? “) age = int(age) double = age + age print(double) Starter - have students guess, then test, then discuss reasons for the error.
Solution 2 age = int( input(“What is your age? “) ) double = age + age print(double) Starter - have students guess, then test, then discuss reasons for the error.
+ - * / ** % Arithmetic Operators num1 = input(”Enter a number: ”) print(num1 + num2) Find out what each of these does: + - * / ** %
Data Types Type Casting Meaning integer int() whole number float decimal fraction string str() text boolean bool() yes / no true / false Introduce data types and casting. Test out a few times.
Data Types a = 3 type(a) a = 3.0 a = “3” a = True
Data Types a = 3 type(a) a = 3.0 a = “3” a = True a = 3 type(a) a = int(“3”) a = “True”
Multiple Choice Quiz pi.mwclarkson.co.uk York Python Camp Programming Resources Programs Python Quiz.py Provide multiple choice quiz. Students adjust question and answer, include some numeric questions (focus on casting), task to duplicate for further questions and add an IF statement to give a grade.
a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Assignment A B C Demonstrate a dry run table and have students work through the assignment quiz
a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Assignment A B C Demonstrate a dry run table and have students work through the assignment quiz
a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Assignment A B C 100 Demonstrate a dry run table and have students work through the assignment quiz
a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Assignment A B C 100 Demonstrate a dry run table and have students work through the assignment quiz
a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Assignment A B C 100 200 Demonstrate a dry run table and have students work through the assignment quiz
a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Assignment A B C 100 200 Demonstrate a dry run table and have students work through the assignment quiz
a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Assignment A B C 100 200 300 a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Demonstrate a dry run table and have students work through the assignment quiz
a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Assignment A B C 100 200 300 a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Demonstrate a dry run table and have students work through the assignment quiz
a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Assignment A B C 100 200 300 150 a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Demonstrate a dry run table and have students work through the assignment quiz
a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Assignment A B C 100 200 300 150 a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Demonstrate a dry run table and have students work through the assignment quiz
a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Assignment A B C 100 200 300 151 150 a = 100 b = 200 c = a + b b = c ÷ 2 a = b + 1 Demonstrate a dry run table and have students work through the assignment quiz
Assignment File Exa.im/stempy16.files