Added lecture 2026113
This commit is contained in:
parent
be356ccb59
commit
5b630435ae
27 changed files with 738 additions and 0 deletions
18
lecture20261103/lists01/list02.py
Normal file
18
lecture20261103/lists01/list02.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
|
||||
|
||||
myList = [ 7, 5, 3, 9.5 ,11, 9999, "bob"]
|
||||
|
||||
|
||||
print("The list is ",myList)
|
||||
print("The type is ",type(myList))
|
||||
print("The length is ", len(myList) )
|
||||
print("\n")
|
||||
|
||||
counter = 0
|
||||
while(counter < len(myList)) :
|
||||
print(f"{counter} {myList[counter]} \t{type(myList[counter])}")
|
||||
counter = counter + 1
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue