""" Purpose: demonstrate some string methods. The string of interest comes from the NY Times. """ # Set string of interest s = "When an Eel Climbs a Ramp to Eat Squid From a Clamp, That’s a Moray" # Get different capitalization versions v1 = s.lower() # Get copy with letters in lower case v2 = s.upper() # Get copy with letters in upper case v3 = s.capitalize() # Get copy with first character upper case, rest # lower case # Print results print( "s:", s ) print() print( "s.lower():", v1 ) print( "s.upper():", v2 ) print( "s.capitalize():", v3 )