Python Hexa Decimal to Decimal

Python program to get an Hexadecimal number and covert it to Decimal number

Sample Input 1 :

A

Sample Output 1 :

10

Try your Solution

Strongly recommended to Solve it on your own, Don't directly go to the solution given below.

#write your code here

Program or Solution

				
			
					
num=0xb
print(num)

			
				
			

Program Explanation

0X denotes hexadecimal literal

Comments