Get the last 4 characters of a string [duplicate] May 4, 2022 by IT Nursery I have the following string: "aaaabbbb" How can I get the last four characters and store them in a string using Python? 2 s 2