For -G7 programing language Teacher / Shamsa Hassan Alhassouni
What we will Learn today? Understand the concept of Arrays Identify Lists in Python
Arrays
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.
Arrays Element 0-9
Lists
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
Activity Activity1 Colors.append(“black”)
Create two lists join them together Challenge Activity Create two lists join them together
How easy did find the today’s lesson in python?