Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

find starting and ending letter in python/py

word = "hello world"

>>> word.startswith("H")
True

>>> word.endswith("d")
True

>>> word.endswith("w")
False
Source by www.pythonforbeginners.com #
 
PREVIOUS NEXT
Tagged: #find #starting #letter
ADD COMMENT
Topic
Name
4+9 =