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
 
PREVIOUS NEXT
Tagged: #check #prefix #python
ADD COMMENT
Topic
Name
5+6 =