How do I remove the last 4 characters in a string?

'abcdefghijklmnopqrstuvwxyz' to 'abcdefghijklmnopqrstuv'

Answer: slice(0,-4)

Edit
Report