Hi Robert,
I guess you mean converting from e.g. hex to decimal or something like
that? Or do you want to use more obscure systems like Roman numerals?
Python's int function can convert from any positional system in bases
2-36. Also Python has the bin, hex and oct functions which you may
find useful:
>>> int('ff', base=16)
255
>>> hex(255)
'0xff'
>>> bin(255)
'0b11111111'
>>> oct(255)
'0o377'
>>> str(255)
'255'
There is no general inverse for int(str, base) provided so you would
have to implement that yourself but it could be a good exercise for
your students.
I don't personally know if sympy has anything to help you here.
--
Oscar