Is assignment an operator in Python? -
i checked operator precedence in python 3(https://docs.python.org/3/reference/expressions.html#operator-precedence), , found there no assignment(=).
i want know if assignment operator or not. if not, why there many "assignment operator" info when googled? precedence relation other real operators(bool operator, comparison operator, etc)?
no. assignment statement in python.
that's why things assignment within if statements, acceptable in other languages, forbidden in python.
Comments
Post a Comment