Kelly H. answered 05/14/24
Patient and Knowledgeable Math Tutor from Cal
The easiest way to do it is probably with a int() and a bin() function.
int(value, number_system) convert an expression to a integer object
eg.
bin(int) return an expression of an integer in its binary format
eg.
Thus the Solution will be