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? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -