Professional Documents
Culture Documents
Student Workbook
Student Workbook
code in
Python
Student
Workbo
Student Name: Won Ho CHO ok
English Name: Jack
Class: Computer science
Teacher: Mr. Twemlow
! To use this workbook, you will need to use the PDF book ‘How to
code in Python’.
TASK 0.2A:
Storage location that stores data and this can ultimately change the program.
TASK 0.2B:
@, $, and %
TASK 0.2C:
Exec,not,assert…
CHALLENGE:
Screenshot of the working program
Challenge screenshot:
Bicycle Chain
Labradoodle Two
Scott aged 23
video videovideo
Going GoingGone
Energy(e) = mc squared
life , live
Screenshot of the working program
Challenge screenshot:
2
18
16
6
5
19
80
5 2 25
5 60 10
49
20
4 4.0 4
Challenge screenshot:
A flee
A fleeting bea
f hearts
earts
ting b
ting
GC
C = central
P = processing
U = unit
10
4
Number…= 12
9
TASK Work through examples 16 – 20. Recreate the program in example 20. Include
1.7 a screenshot of both the code and the working program.
CHALL Alter the program to ask a user to input for the 2 values to use in the
ENGE calculation. Output the result.
SUPPO See page 15 of the textbook.
RT
Screenshot of the code Screenshot of the working program
☐
Challenge screenshot: MARKI ☐ SELF ☐ PEER
TEACHE
NG R
DATE:
FEEDB
ACK
RESPO
NSE
197.73
10.0
79.0
4
1
0.88
25
27
SCORE X out of 9.
Program Challenge
Number:
Screenshot of the code
Program Challenge
Number:
Screenshot of the code
Screenshot of the working program
Challenge screenshot:
Challenge screenshot:
RESPONSE
mid
high
high
low
liq
sol
gas
gas
c/ >=43
Valid age
Working age
16/17/18
Invalid value/0.0
bcbc
coffaacoffaa
baanbaan
Program Challenge
Number:21
Screenshot of the code
Screenshot of the working program
Screenshot of the working program
Program Challenge
Number:23
Screenshot of the code
Screenshot of the working program
Challenge screenshot:
2;5;8;11;14;17
10;20;30;40;50
35;30;25;20;15;10
4;7;10;13
range(2,6)
range(7,4,-1)
range(1,11,3)
range(45,8,-9)
Num1 = 5
Num2 = 5
20.0 10.0
44 28 6
156 77 79
555
282 6 288
505
0a1a2a3b
13
B
abc
c
ad
abc
acd
abcd
none
PROGRAM CHALLENGES 3
INSTRUCTIONS: Choose 5 of the programming challenges from section 3 (program 28 –
45, pages 55 –62). Recreate the programs and provide evidence below:
Program Challenge
Number:
Screenshot of the code
Program Challenge
Number:
Screenshot of the code
Program Challenge
Number:
Screenshot of the code
Screenshot of the working program
Challenge screenshot:
5
9
9
9
0
5
5
5
12
10.0
3
3
3
3
3
0
1
2
3
4
0
1
2
3
4
1
1
1
2
1
D d
M m
A a
S s
P p
C
L
I
L
C
45
9
35
92
67
B N
D J
F T
U H
A M
0 36
0 12
0 12
0 42
0 45
make
Program Challenge
Number:
Screenshot of the code
Program Challenge
Number:
Screenshot of the code
Challenge screenshot:
Program Challenge
Number:
Screenshot of the code
Challenge screenshot:
PROGRAM CHALLENGES 6
INSTRUCTIONS: Choose 3 of the programming challenges from section 6 (program 63 –
67, pages 109 –111). Recreate the programs and provide evidence below:
Program Challenge
Number:
Screenshot of the code
Program Challenge
Number:
Screenshot of the code
Challenge screenshot:
PROGRAM CHALLENGES 7
INSTRUCTIONS: Choose 3 of the programming challenges from section 6 (program 68 –
72, pages 120 –122). Recreate the programs and provide evidence below:
Program Challenge
Number:
Screenshot of the code
Program Challenge
Number:
Screenshot of the code
TASK Create a program for a LINEAR SEARCH. Choose from version 1 or version 2
8.4 as shown in the textbook.
SUPPO See page 125 – 126 of the textbook.
RT