The bin and oct functions in Python serve two similar purposes. The bin function takes in a number and returns its binary string representation. Similarly, the oct function takes in a number and returns its octal string representation.
Check Out More Of Python's built-in Functions 👉 • Python: Built-in Functions
Sections
0:00 - bin
0:13 - How To Remove The Binary Prefix
0:31 - oct
#python #codingtutorial #learntocode