Get the last 4 characters of a string

I have the following string: "aaaabbbb"

How can I get the last four characters and store them in a string using Python?

← Назад к списку