FAQ: Control Flow - Review

You can’t use an expression with else, it should be just else: on its own followed by a suite of code-

    do something else

That would also match your text description better as you want this to occur should the input be anything other than 1, 2, 3, 4, 5 or 6. If you wanted your expression to work planet >= 7 then use another elif instead.

1 Like

Thanks for your clear reply!

1 Like