Decode School

Decode School - The School for Problem Solvers
Welcome to My Blog.
Need Assignment / Project Guidance (or) Training in Python?

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

Program or Solution

					    
							
num=0xb
print(num)

					    
					

Program Explanation

0X denotes hexadecimal literal