Table of Contents

strings

access last character

last_char = mystring[-1]
last_char = mystring[len(mystring)-1]
last_3chars = mystring[-3:]
first_2chars = mystring[0:1]
skip_3chars = mystring[3:]

last word

words = mystring.split(' ')
last_word = words[-1]