parse_number(text) that accepts a string representing a number in binary ("0b..."), octal ("0o..."), hexadecimal ("0x..."), or plain decimal, and returns its integer value. Use int() with base 0 so the prefix determines the base automatically.parse_number("0b101")5
Binary 101 = 5 in decimal.
parse_number("0x1A")26
Hex 1A = 26 in decimal.
parse_number("42")42
Plain decimal string.
`int(text, 0)` lets Python infer the base from the prefix.
Base 0 falls back to base-10 when there is no recognized prefix.