# Author: James Tam # Version: September 27, 2021 # Learning objective: python for loops do more than count up/down (can iterate # or step through a sequence e.g. a sequence of numbers, a sequence of characters # in a string userString = input("Type a sequence of characters and the loop will step through them one at a time: ") i = 1 for ch in userString: print("Char #%d: " %i, end="") print(ch) i = i + 1 print("\nDone iteration")