Pergunta de entrevista da empresa IBM

To convert int to binary in python without inbuilt function