Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to Use Python all() Function to Check for Letters in a String using all function

s = "Adsjdsjdsjdsjdfs"
res = [char.isalpha() for char in s]
print(all(res))
 
PREVIOUS NEXT
Tagged: #How #Use #Python #Function #Check #Letters #String #function
ADD COMMENT
Topic
Name
4+2 =