I know next to nothing what the 'integer' supposed to be. Test results are not that helpful because there are only pass/fail information and not information what result was expected. Can't help.
Therefore I make just some nitpicking about code:
- it is advisable to use conventions set in PEP8 - Naming Conventions - Function and Variable names
- some things in code can be expressed more concisely:
Therefore I make just some nitpicking about code:
- it is advisable to use conventions set in PEP8 - Naming Conventions - Function and Variable names
- some things in code can be expressed more concisely:
# instead of: count = count + 1 # one can use: count += 1 # instead of: if ordValue >= 48 and ordValue <= 57 # one can use: if ord_value in range(48, 58) if 48 <= ord_value <= 57- docstring should consist correct information. Currently there is '"""Returns True if testValue is an integer and False otherwise.""". This is not correct, as it considers floats as integers etc. You should not mislead yourself (and others who may read your code) that this function has something to do with Python integers and/or functionality provided by built-in int() function.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.