python - Shorter way to check if a string is not isdigit() -


for sake of learning, there shorter way do: if string.isdigit() == false :

i tried: if !string.isdigit() : , if !(string.isdigit()) : both didn't work.

python's "not" operand not, not !.

python's "logical not" operand not, not !.


Comments