Loading

Convert boolean values to strings 'Yes' or 'No'.

Instructions
Complete the method that takes a boolean value and return a "Yes" string for true, or a "No" string for false.
Solution

def bool_to_word(bool):
    return "Yes" if bool else "No"
posted @ 2023-03-26 14:40  Artwalker  阅读(11)  评论(0编辑  收藏  举报
Live2D