For the following sample:

def fuctionName(i: int, b: bool):
    if i in range(...):
        if b == True:
            return False
        else:
            return True

Is there any way to skip the second if-statement? Just to tell the computer to return the opposite of the boolean b?

Edit
Report