Light Mode
Dark Mode
syntaxerror in assertion?

Running the code ;

    def secret_room(number):
        #replace this for solution
        return 0

    if __name__ == '__main__':
        print("Example:")
        print(secret_room(5))

        #These "asserts" using only for self-checking and not necessary for auto-testing
        assert secret_room(5) == 1, #five, four, one, three, two
        assert secret_room(3) == 2, #one, three, two
        assert secret_room(1000) == 551
        print("Coding complete? Click 'Check' to earn cool rewards!")

shows a syntax Error : SyntaxError: invalid syntax (<MYCODE>, line 10) ?, ?

Created: Sept. 12, 2018, 1:50 p.m.
Updated: Sept. 12, 2018, 9:46 p.m.
2
28
User avatar
bourbaka