Tips
Retrieve a substring from the end in Python

To extract a substring in Python, use slicing. By specifying a negative index as the starting index, you can extract a substring from the end of the string.

Read more

photo by:Justin Kauffman