Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python is space

# isspace() is method of the <str> returns True if the string has only empty spaces
print(" ".isspace())  # True
print("     ".isspace()) # True
print(" test".isspace())  # False
print("".isspace()) # False
 
PREVIOUS NEXT
Tagged: #python #space
ADD COMMENT
Topic
Name
5+8 =