Lesson 3 Python Pbr
Lesson 3 Python Pbr
PROGRAMMING
PYTHON
Learning Outcomes
–Lesson 3
Demonstrate and explain the
practice of commenting on code
Create a simple maths test.
Explain the need to convert a
variable to an integer
Make use of if statements to
create a 12 times table
Last lesson
You saved a file called questions.
Can you find the file?
Can you open it?
Add another question and response
Add another question – ask the
user to name a place where they
have been on holiday.
The response must be;
“Hmmm…. “ + holiday_location +
“sounds like a nice place
to go”
Commenting code
Comments are added to
computer programs to help
people understand the intentions
of the person who created the
code – especially where it is not
obvious what is going on.
################