IBM interview question

To convert int to binary in python without inbuilt function