Lecture 11/17/2026
This commit is contained in:
parent
07b9e54bf0
commit
bf3265103a
44 changed files with 1195 additions and 3 deletions
11
lecture20261117/while/while03.py
Normal file
11
lecture20261117/while/while03.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
print("Process list")
|
||||
counter = 5 ;
|
||||
index = 0
|
||||
names = [ "Harry", "Larry", "Moe", "Katrina", "Colorado", "Shenanigans"]
|
||||
|
||||
while(counter > 0 ):
|
||||
print("Counter = ",counter, " Index = ", index)
|
||||
print("names[{}] = {}\n".format(index,names[index]))
|
||||
index = index + 1
|
||||
counter = counter - 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue