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

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -