Monday, 9 September 2013

Python int method

Python int method

So I have a code, but i'm not sure how it works:
def getValue(number):
return int(number,16)
So if I were to put in 'a25' for the number it should return 2597 But my
question is how does this int function work, and is there another way to
do this?

No comments:

Post a Comment