files
KOS_qrcodes/programs/cmm/python/examples/dectohex.py
pavelyakov 4f79e17394 Python update online compiler
git-svn-id: svn://kolibrios.org@7304 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-07-14 14:51:53 +00:00

10 lines
183 B
Python

def test(x):
f = ['0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F']
txt = ""
while x:
txt = f[x&0xF]+txt
x = x>>4
return txt
stdout(test(0x123454))