Jan-19-2018, 11:32 PM
You never convert your string to a number.
This makes no sense:
You need to convert to int:
This makes no sense:
argstr.isdigit() > 100
argstr.isdigit()
is just True
or False
(1 or 0). Not what you want.You need to convert to int:
>>> string = "100" >>> string.isdigit() True >>> number = int(string) >>> number 100