pythoin remove last two signes from a list item code example Example: python remove last 4 characters from string foo = foo[:-n]