The assignment states that we mustn't use the int function through the question. However, my algorithm needs to use it simply to convert a single bit "1" and "0" to decimal, in order to use functions like 'and' and 'xor'. I imagine the prevention of bit by bit manipualtion isn't the essence of the assignment, but the prevention of directly convering the base from binary to decimal. Is it okay to use int simply to convert the string "1" to the integer 1? Otherwise it'd just force me to use multiple if statements, and nobody likes that..
question B