Presentation is loading. Please wait.

Presentation is loading. Please wait.

Mini Python Project Lesson 3.

Similar presentations


Presentation on theme: "Mini Python Project Lesson 3."— Presentation transcript:

1 Mini Python Project Lesson 3

2 Objectives LO1: Pupils learn what basic lists are and how to apply them to use in Python. LO2: Application of modules and comments in Python LO3: Creation of a fortune teller in Python using previously learnt knowledge and new learning form the lesson.

3 List in Python A list of data Separated by commas In square brackets
Can be called upon by their address. The first item in a list being 0. It is possible to change the values in a list. Note that for the purpose of our mini python project this is all we need to know about lists.

4 Import Statement and modules
What are modules? Modules are files that contain code meant to be used in other programs. What’s the import statement? Something that allows you to import, or load, modules.

5 Commenting on code How? To add a comment you simply put the # symbol in front of what you want to write. The # symbol means the computer completely ignores it

6 Commenting on code Why is it important? -explain the programming in English -invaluable to other programmers to help them quickly understand your code. -helpful to you to remind you how you accomplished something

7 Today’s Task


Download ppt "Mini Python Project Lesson 3."

Similar presentations


Ads by Google