2026fa_cse160/lecture20261110/lists/list04.py
2026-11-17 12:30:27 -05:00

17 lines
420 B
Python

#!/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!")