homework5git/lists/list04.py

17 lines
383 B
Python

#!/usr/bin/python3
# Program: list04
# Lists of text values
dogNames = [ "Harry", "Shenanigans","Katrina","Tanner","Yukon Jack", "Colorado","Mandy"]
# 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("\nDone!")