# Author:  James Tam
# Version: October 25, 2022
# Learning:
# 1) Illustrating:how python for-loops can iterate through more than
#    just number sequences (in this case a string of characters)
# 2) Showing how a string consists of elements (characters). This will introduce
#    how other composites (lists, strings, tuples) can have their elements
#    accessed individually.

aStr = input("Type in a sequence of characters: ")
for aChar in aStr:
    print(aChar, end=" ")
print()

i = 0
for aChar in aStr:
    print("Char #%d=%s" %(i,aChar))
    i = i + 1
print()
