I am a newbie in python. Can some one advice how can I convert a hex number to its string representation.I would like to implement something like below.What should be the best method for 'convert()'?
val_hex = 0xBEEF
val_str = convet(val_hex) # val_str = 'BEEF'