bin()
bin() is built into Python. You do not import it. Freshers only need one honest call and the printed result — not a long definition.
bin() — output — 0b1010. Binary text for 10.
Wrong type often raises TypeError. Empty values matter for bool/all/any. Don’t mix bin up with a similar name (sorted vs sort, int vs float).
Exam tip
Call bin() once and say what prints.