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


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

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