Presentation is loading. Please wait.

Presentation is loading. Please wait.

For -G7 programing language Teacher / Shamsa Hassan Alhassouni.

Similar presentations


Presentation on theme: "For -G7 programing language Teacher / Shamsa Hassan Alhassouni."— Presentation transcript:

1 For -G7 programing language Teacher / Shamsa Hassan Alhassouni

2 What we will Learn today?
Understand the concept of Arrays Identify Lists in Python

3 Arrays

4 A variable is a memory location that can store a value..
Arrays A variable is a memory location that can store a value.. Series of memory locations or boxes and each box contains a value with the same data type.

5 Arrays Element 0-9

6 Lists

7 shopping= [ “milk”, “coffee”, “rice”, “chicken”]
Lists in Python Python uses lists to allow putting many values within the same variable. We can make a list using square brackets [ ] shopping= [ “milk”, “coffee”, “rice”, “chicken”] Colors = [ “red”,”green”,”yellow”,”blue”] Each list should have an index which starts with the number 0

8 Activity Activity1 Colors.append(“black”)

9

10 Create two lists join them together
Challenge Activity Create two lists join them together

11 How easy did find the today’s lesson in python?


Download ppt "For -G7 programing language Teacher / Shamsa Hassan Alhassouni."

Similar presentations


Ads by Google