Assume a base 20 number system which uses symbols 0-9 to represent values zero to nine and charectera A-J to represent values ten to nineteenth.
As an example the base 20 number 1JF3 can be written as
(1*20 power 3) + (J*20 power 2)+(F*20 power 1)+ (3*20 power 0)
This evaluates to 1*8000 + 19*400+ 15*20 + 3*1 = 15903 in decimalsystem
given 2 base 20 numbers write a program to subtract second from the first and return the result in base 20 format.
Need the python cide
Can anyone please help me out
As an example the base 20 number 1JF3 can be written as
(1*20 power 3) + (J*20 power 2)+(F*20 power 1)+ (3*20 power 0)
This evaluates to 1*8000 + 19*400+ 15*20 + 3*1 = 15903 in decimalsystem
given 2 base 20 numbers write a program to subtract second from the first and return the result in base 20 format.
Need the python cide
Can anyone please help me out