How to write multiply condition in several line without invalid syntax error in Python
<p>The following code gives me error:</p>

<pre><code>    if self.from_position in self.supporters or 
                                               ^
SyntaxError: invalid syntax
</code></pre>

<p>Code:</p>

<pre><code>def validate_move_piece(self):
    if self.from_position in self.supporters or 
    (self.turn == 'X' and self.from_position == self.player_x) or 
    (self.turn == 'Y' and self.from_position == self.player_y) or 
    (self.last_position == self.from_position):
        return True
    else:
        self.error = ERROR_MOVE_FORMAT 
        return False
</code></pre>
