''' Purpose: show how not to process numeric input -- major gotcha ''' print() # does not work reply = input( 'Enter a rectangle width and height: ' ) w, h = int( reply ) # int() string argument must represent a single number # does not work reply = input( 'Enter rectangle width and height: ' ) w, h = reply.split() w, h = int( w, h ) # int() can only take a single string argument