''' Purpose: demonstrate string acquisition (the getting of input) ''' # get input reply = input( 'Tell me a favorite word: ' ) # we don't know how the input() function works, but it probably uses print() # we just know that it'll take whatever is typed and store it into reply print() # blank line to maintain readability :) # compute length of word n = len( reply ) # this is a built in function that will compute how many characters # there are in the string - includes spaces, punctuation, etc. # n is a commonly used short variable, especially for numbers # give feedback print( 'Did you know that', reply, 'has length', n ) # could we code without built in functions? probably but we choose to love ourselves