S = input("Please type some text: ") print("First, we print each character in order:") N = len(S) for i in range(N): c = S[i] print("S[", i, "] =", c) input("\nType enter to continue>\n") print("Same idea, but less explicit:") for i in range(len(S)): print( "S[", i, "] =", S[i]) input("\nType enter to continue>\n") print("Now all in one line:") for i in range(len(S)): print("S[" + str(i) + "]=" + str(S[i]), end="; ") input("\nType enter to continue>\n")