Added code for lecture 2026-11-10

This commit is contained in:
Edward Bigos 2026-11-10 12:28:09 -05:00
commit 07b9e54bf0
52 changed files with 1248 additions and 1 deletions

View file

@ -0,0 +1,17 @@
#!/usr/bin/python3
# Program: list04
# Lists of text values
dogNames = [ "Harry", "Shenanigans","Katrina","Tanner","Yukon Jack", "Colorado","Mandy",7]
# Print the list and the length
print("Print the length of the list.")
print (dogNames," length = ",len(dogNames),"Type =",type(dogNames))
print("\n")
for item in dogNames:
# print(f"{item:14s} {type(item)}")
print(f"{item} {type(item)}")
print("\nDone!")