python take last character of string 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