summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/builtin_hex.py
blob: 7d1c98a7a9ddad54bf9674e7f255da961ba1786a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# test builtin hex function

print(hex(1))
print(hex(-1))
print(hex(15))
print(hex(-15))

print(hex(12345))
print(hex(0x12345))

print(hex(12345678901234567890))
print(hex(0x12345678901234567890))