Python Convert Decimal To Hex

How in python convert decimal to hex, first we need to understand what hexadecimal is, it’s numeric system 

we may need to represent numbers into hex which is 16 digits system starting with 0x, while decimal is 10 (0-9).

decimal is the most used system of numbers and very understandable

60 = 0x3c
dec = 255
print hex(dec)