6 lines
102 B
Python
6 lines
102 B
Python
def parse(n):
|
|
if n.startswith('$'):
|
|
return int(n[1:], 16)
|
|
else:
|
|
return int(n)
|