python last letter of a string matches 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