''' Purpose: demonstrate string acquisition (the getting of input) ''' # get input reply = input( 'Tell me a favorite word: ' ) # reply contains your favorite word in a string print() # compute length of word n = len( reply ) # n stores the length of the string in reply # len() is a function: gives it a sequence and it tells you how many elements are in the sequence # if the sequence is a string, it tells us how many characters there are in the string # give feedback print( 'Did you know that', reply, 'has length', n ) # prints out the string, the value of reply, another string, value of n