how to print the last letter of an input in 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