las n chars of string python code example
Example: how to get last letter of string python
# Get the Last Character of a string
mystring = 'Grepper'
lastcharacter = mystring[-1:]
print(lastcharacter)
# Greppe
# Get the Last Character of a string
mystring = 'Grepper'
lastcharacter = mystring[-1:]
print(lastcharacter)
# Greppe