a Write your own code in python to convert positive integers
a) Write your own code (in python) to convert positive integers between base 10 and base 2 (or, optionally, more general bases). Show how your algoritm works. Use loops, integer division and the modulus operator. The best way to present the digits of the result of the conversion is as a list.
b) Look at the available python builtins and python modules on the internet to find the best way to accomplish this task with these resources. Present
demonstration code and output.
Solution
a)
Code:
b)
Built- in functions or python modules available are :-
