I am trying to build a logic where I need to write code in such a way that my string should contain
alphabet and number both. If not print sting does not contain letter else number or both
My code:
stg = 'abc123'
stg.isalnum()
Output :
True
Even if my string does not contain number then also gives me : True
. That I don't want it
My string should contain at least one letter and number