Lecture 11/17/2026

This commit is contained in:
Edward Bigos 2026-11-17 12:30:27 -05:00
commit bf3265103a
44 changed files with 1195 additions and 3 deletions

View file

@ -0,0 +1,26 @@
print("Process list - minimal code")
names = [ "Harry", "Moe", "Katrina", "Colorado", "Shenanigans", "Tracey"]
counter = 0
print("\nThe length of the list is {}\n".format(len(names)))
while(counter < len(names) ):
print("Counter = ",counter)
print("names[{}] = {}\n".format(counter,names[counter]))
counter = counter + 1
print("Process list - sorted")
names.sort()
counter = 0 ;
print("\nThe length of the list is {}\n".format(len(names)))
while(counter < len(names) ):
print("Counter = ",counter)
print("names[{}] = {}\n".format(counter,names[counter]))
counter = counter + 1