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

Popular posts from this blog

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -