Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check strings last letter python

sample_str = 'Sample String'
# Get last character of string i.e. char at index position -1
last_char = sample_str[-1]
 
print('Last character : ', last_char)
# Output
Last charater : g
Source by thispointer.com #
 
PREVIOUS NEXT
Tagged: #check #strings #letter #python
ADD COMMENT
Topic
Name
8+8 =