circuitpython/tests/basics/builtin_oct.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
128 B
Python
Raw Normal View History

# test builtin oct function
print(oct(1))
print(oct(-1))
print(oct(15))
print(oct(-15))
print(oct(12345))
print(oct(0o12345))