Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

isidentifier method in python

#Python's isidentifier() method is used to check whether a string is a valid
#identifier or not.
print('hello'.isidentifier()) #True
print('Py thon'.isidentifier()) #False
print('22Python'.isidentifier()) #False
 
PREVIOUS NEXT
Tagged: #isidentifier #method #python
ADD COMMENT
Topic
Name
5+6 =