[Solved] How to program to only input words and not integers on Python [closed]

[ad_1]

You could use isdigit to check if your string contains digits

Example 1

print( all( not c.isdigit() for c in "String doesn't contain any numbers." ) )
True  

Example 2

print( all( not c.isdigit() for c in "String 2 doesn't contain any numbers." ) )
False

[ad_2]

solved How to program to only input words and not integers on Python [closed]