Here's how to convert a decimal number to a binary number using successive division.
Python code here: https://trinket.io/glowscript/741840bc9a
Other conversions videos:
Binary to Decimal • Convert Decimal to Binary in Python (...
Decimal to Binary • Convert Decimal to Binary in Python (...
Hexadecimal to Decimal • Python Code from Scratch: Convert Hex...
Decimal to Hexadecimal • Python Code from Scratch: Convert Dec...