Year 9-Lesson 6-Intro To Python Programming-1
Year 9-Lesson 6-Intro To Python Programming-1
lucky = 13 ↺
Pick a lucky number
print("Can you guess my lucky number?") Ask the user to guess .
guess = int(input())
if guess == lucky: Display feedback to the user .
print("Amazing, you guessed it")
else:
print("Sorry, it’s not", guess)
print("Nice playing with you") Say goodbye
Exam Conditions
You are under exam conditions:
- Keep silent
- Keep your eyes on your own paper/ computer
- Do not distract
- Sit still and do not turn around
10
Summary
Unit takeaways