09-Python Basic

Functions, Parameters, Arguments, Generator, Iterator

# Topic covered
* Functions
* Built-in Functions
    * Anonymous/lambda Functions
    * map() function
    * reduce() function
    * filter() function
    * eval() function
* User Defined Functions
* Return Statement
* Parameters & Arguments
    * Positional arguments
    * Keyword arguments
    * Default arguments
    * Variable length arguments
* Generators
* Iterable and Iterator in Python
    * Create an Iterator Class
[Read More]

05-Python intermediate

Deepcopy and shallow copy, Value equality vs identity

# Topic covered
* Deepcopy and Shallow copy
* Value equality vs identity

Deepcopy and Shallow copy

  • In case of shallow copy, a reference of object is copied in other object.
    • It means that any changes made to the copied object do reflect in the original object
    • External object id changes but Internal object id remains same
  • In case of deep copy, a copy of object is copied in other object.
    • It means that any changes made to the copied object do not reflect in the original object
    • External and internal object ids changes
[Read More]