Pregunta de entrevista de IBM

To convert int to binary in python without inbuilt function