Download presentation
Presentation is loading. Please wait.
Published byBerniece Martin Modified over 6 years ago
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”)
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?
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.