I'm taking the Meta Python course on Coursera, and just can't understand why this seems backwards. #Light is currently off current = False if current: current = False print('Turning light off') if not current: current = True print('Turning light on')
``current`` is the boolean representing whether the light is currently on, ``if current:`` - if the light is currently on -> turn it off (a switch)