Time is over! You can keep submitting you assignments, but they won't compute for the score of this quiz.
Convert boolean to binary
Define a function
convert_bool_to_binary that receives a boolean and returns
1 if it is true and
0 if it is false.
>>> convert_bool_to_binary(True) 1 >>> convert_bool_to_binary(False) 0
def convert_bool_to_binary(a_boolean): if a_boolean: return 1 return 0