Operator
An operator is a symbol or keyword in source code that represents a built-in function.
Related concepts: Function
Closest Wikipedia entry: Operator (computer programming)
Misconceptions about Operator28 documented Misconceptions
Check YourselfAssignCompares
= compares two valuesCannotChainAttributeToObjectInstantiation
Method calls, and attribute accesses in general, cannot be chained to a constructor invocation.ComparisonWithBoolLiteral
To test whether an expression is True or False, one must compare it to True or to FalseMapToBooleanWithTernaryOperator
To map a boolean expression to a bool, a ternary conditional operator is necessaryNoAtomicExpression
Expressions must consist of more than one pieceNoShortCircuit
and/or always evaluate both operandsPlusConcatenatesNumbers
The plus operator can concatenate strings and numbers