Vous êtes sur la page 1sur 9

[ slide 1 ]

Programs, programs, everywhere!


This is a starter activity and should take 5 minutes

1. Open up a text editor such as Notepad.

2. Write a list of all the apps, programs and applications you have used so far today.
3. Be ready to share your ideas with the class.

[ slide 2 ]

Lesson Aims
1. Learn about computer programming and the different languages that you can use 2. Meet Python 3 programming language 3. Learn how to use IDLE 4. Write and run your first program

Vocabulary
Python 3 IDLE IDE output syntax error

[ slide 3 ]

Programming Session Rules


1. Try to complete the task set on your own computer

2. If you have finished and are waiting, you may:

try out your own code

help other students who are stuck. 3. When asked to stop: go back to your seat stop coding listen carefully.

Python 3 runs on all computers:

[ slide 4 ]

1. Use the textbook glossary to find out what an IDE is.

2. What does IDLE stand for?

[ slide 5 ]

Your first program Hello World!


This is from page 13 in Python Basics 1. Type this into IDLE:

2. Find out how many ways there are of getting this to fail!

[ slide 6 ]

Making Mistakes

Type accurately challenge!


1. Can you type out the code in Code Box 2.1 with no errors first time?

2. Can you work out what \n does?

Escape sequences:
You have been using IDLE in interactive mode. This is when we write a command and it is run as soon as we press ENTER on the keyboard.
Interactive mode is great for experimenting. 1. Using a copy your code from Code Box 2.1, change the escape sequence to some of those below to see what they do.

[ slide 4 ]

2. Trying running the following code: 1. Print(Here is a speech mark: \ and here is a slash: \\)

2. Print(I say High, you say Low. You say Why? and I say I dont\t know. Oh no.)

Challenge:

Vous aimerez peut-être aussi