Python basics slides ch1

8
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 1 ]

Transcript of Python basics slides ch1

Page 1: Python basics slides   ch1

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 1 ]

Page 2: Python basics slides   ch1

Lesson Aims1. Learn about computer programming and the different

languages that you can use2. Meet Python 3 programming language3. Learn how to use IDLE4. Write and run your first program

[ slide 2 ]

VocabularyPython 3IDLEIDE

outputsyntax error

Page 3: Python basics slides   ch1

Programming Session Rules

1. Try to complete the task set on your own computer2. 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.

[ slide 3 ]

Page 4: Python basics slides   ch1

Python 3 runs on all computers:[ slide 4 ]

1. Use the textbook glossary tofind out what an IDE is.

2. What does IDLE stand for?

Page 5: Python basics slides   ch1

Your first program – Hello World!

1. Type this into IDLE:

This is from page 13 in Python Basics

[ slide 5 ]

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

Page 6: Python basics slides   ch1

Making Mistakes

[ slide 6 ]

Page 7: Python basics slides   ch1

Homework

1. Install and test Python 3 on your home computer2. Visit and read:

http://en.wikipedia.org/wiki/Hello_world_program_examples

[ slide 7 ]

Page 8: Python basics slides   ch1

Chapter Summary

1. Coding is ...

[ slide 8 ]

In this lesson you have learnt:

writing instructions for computers 2. Python 3 is ... a great programming language3. An IDE is ... an integrated development environment4. IDLE is ... the IDE that comes with a standard Python install5. Output is ... data that is sent from a program to a screen6. A syntax error is ... an error produced when a computer cannot

recognise the code supplied by a programmer