Friday, 30 June 2017

Python int() Function

Cited from the book "Data Structure and Algorithms in Python"

If conversion from a different base is desired, that base can be indicated as a second, optional, parameter. For example, the expression int( 7f , 16) evaluates to the integer 127.

No comments:

Post a Comment