Answers for "how do i check if a string has alphabets or numbers in python"

0

how to check if a string is composed only of alphabets in python

str1 = "hello world. welcome to python examples."

bool = str1.isalpha()

print('str1 contains only alphabets:', bool)
//output will be False
Posted by: Guest on October-11-2020

Code answers related to "how do i check if a string has alphabets or numbers in python"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language