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

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -