Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to check prefix in python

string="enjoy every moment"
result = string.startswith("en")
#Output  True

result = string.startswith("in")
# Output False
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #check #prefix #python
ADD COMMENT
Topic
Name
6+1 =