Complete the method that takes a boolean value and return a "Yes" string for true, or a "No" string for false.
bool_to_word(True) # Output: "Yes"
bool_to_word(False) # Output: "No"
def boolean_to_string(b):
return "True" if b else "False" def bool_to_word(boolean):
# TODO
if(boolean):
return 'Yes'
else:
return 'No'