Simple boolean inequality operators mistake

后端 未结 6 600
醉话见心
醉话见心 2020-12-12 01:54

Using inequality operators, I have to define a procedure weekend which takes a string as its input and returns the boolean True if it\'s \'Saturday

6条回答
  •  一整个雨季
    2020-12-12 02:37

    def weekend(day):
        # your code here
        if day == 'Saturday' or day == 'Sunday':
            return True
        else:
            return False
    

提交回复
热议问题