Added lecture 2026113
This commit is contained in:
parent
be356ccb59
commit
5b630435ae
27 changed files with 738 additions and 0 deletions
15
lecture20261103/lists02/dogs-lists08.py
Normal file
15
lecture20261103/lists02/dogs-lists08.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# dogs-lists08
|
||||
|
||||
dogs = ["Mandy", "Harry", "Shenanigans", "Colorado", "Katrina", "Rusty" ]
|
||||
|
||||
# Poor method to print
|
||||
print(dogs)
|
||||
|
||||
# Print the list
|
||||
positionId = 0
|
||||
for dog in dogs:
|
||||
print("{} {}".format(positionId,dog))
|
||||
positionId += 1
|
||||
|
||||
print("\n")
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue