atoi in python code code example Example 1: atoi in python code >>> atoi("FF",16) 255 Example 2: atoi in python code >>> atoi("255",10) 255