# File: ChapterControlFunc/while3.py """ what is your name (quit type q)? Sir Isaac Newton ['Sir', 'Isaac', 'Newton'] Sir Isaac Newton S Sir Isaac Newton what is your name (quit-q)? """ def string0(): while True: name = input("what is your name (quit-q)? " ) # is a string if (name == 'q' or name == 'Q'): break listname = name.split() #splits with blanks not characters print(listname) print(name) print(name[0]) # name is a string ; type forst letter n = len(listname) for i in range(n): print(listname[i]) string0()