Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python str prefix

message = 'Python is fun'

# check if the message starts with Python
print(message.startswith('Python'))

# Output: True
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #str #prefix
ADD COMMENT
Topic
Name
4+5 =