Write a program to test if string contains digits


Topic: Write a program to test if string contains digits

Solution

word = "Hello World"
check = word.isdigit()
print(f"String contains digits?:{check}")



List all Python Programs