remove last 3 letters and append 3 letters code example Example: python remove last 4 characters from string foo = foo[:-n]