1.

How does dot notation and array notation of variables are different?

Answer»

Dot notation works fine UNLESS we stump upon few SPECIAL cases such as

  • If the variable contains a dot(.), colon(:), starting or ending with an underscore or any KNOWN PUBLIC attribute.
  • If there’s a collision between METHODS and attributes of python dictionaries.
  • Array notation also allows for dynamic variable composition.


Discussion

No Comment Found