Added lecture 2026113
This commit is contained in:
parent
be356ccb59
commit
5b630435ae
27 changed files with 738 additions and 0 deletions
18
lecture20261103/lists01/lists01.py
Normal file
18
lecture20261103/lists01/lists01.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
|
||||
|
||||
myList = [ 7, 5, 3, 9]
|
||||
|
||||
|
||||
print(myList)
|
||||
print(type(myList))
|
||||
|
||||
print( "Length of the list is ",len(myList) )
|
||||
|
||||
print(myList[0])
|
||||
print(myList[1])
|
||||
print(myList[2])
|
||||
print(myList[3])
|
||||
|
||||
|
||||
# This generates an error when you uncomment it
|
||||
#print(myList[4])
|
||||
Loading…
Add table
Add a link
Reference in a new issue