Python Programming Worksheet 1

vetinnocentΛογισμικό & κατασκευή λογ/κού

7 Νοε 2013 (πριν από 3 χρόνια και 9 μήνες)

63 εμφανίσεις

Name _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Group _ _ _ _ _

Date _ _ _ _ _


Python Programming Worksheet 1

Practice 1

Copy, save and run the following program


Challenge 1

Complete the following program so it uses the variables to print out “The cat sat on the mat”. It should
print out on one line with spaces.


Review 1


Insert your code here

Did you have any errors?

What were they?

Insert your program output here

How did you solve them?

What did you find difficult?



Name _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Group _ _ _ _ _

Date _ _ _ _ _


Practice 2

Copy, save and run the following program


Challenge
2

Write a program that asks the user

for their name and then asks them what their favorite food is,
using their name in the question, and then responds to their answer
.

The following image shows an
example output.


Review
2


Insert your code here

What does the
input
command do?

What does

the special
\
n

character do?

Insert your program output here

Did you have any errors? If so,
what were they
and
h
ow did you solve them?

What did you find difficult?



Name _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Group _ _ _ _ _

Date _ _ _ _ _


MasterMind Question

Why is the sequence of instructions important when we are
programming?


Your answer >>>

Extension Fun

In python “”” can be used to create multi
-
line print states as shown below. Using this technique can
you draw the school logo?




Coaching Log

Person coached

Challenge

How I helped