how to chop off the two last letters of a string python code example Example: python remove last part of string #Removing last three characters foo = foo[:-3]