hi,
im having difficulty with this python question as i am new to python.
the question is:
Draw up the list of possible inputs for a half adder and the
outputs that you expect. Implement a half adder in a few lines of python, so that the
variables o1 and o2 are based on i1 and i2.
i1= True
2 i2= False
3 ............................
o1 =?
5 o2 =?
now i know the function should be something like this :h(i1, i2) =>o1, o2