This repository is a proof of concept that I know how to read/write code in Python. I will also use this repository to revise some of the harder concepts in Python (like Generators and Decorators). Feel free to contribute to the repository if you feel like there are some concepts that need to be added into the repository.
-
Miscellaneous Concepts:
*args
&**kwargs
: args_kwargs.py- Closures in Python using
nonlocal
keyword: closure_nonlocal.py
-
Object Oriented Programming:
- Defining
class
es: class.py - Defining
class
,__init__
& objects: objects.py - Difference between Class Object Attributes & Instance Attributes: attr_method.py
@classmethod
and@staticmethod
in a class: decorator_class.py- Inheritance of classes: inheritance.py
- Polymorphism: polymorphism.py
- Calling super class' constructor using
super()
and Object Introspection usingdir()
: super.py - Operator Overloading & Function Overriding using Dunder/Magic Methods: dunder.py
- Making your own list objects using inheritance: super_list.py
- Defining
-
Functional Programming:
- Pure functions and
map()
function: map.py - The
filter()
function: filter.py - The
zip()
function: zip.py - Using the
reduce()
function fromfunctools
: reduce.py - Exercise on
map()
,filter()
&reduce()
: exercise_1.py - Anonymous function definitions using
lambda
expressions: lambda.py - Exercise on
lambda
expressions: exercise_2.py list
comprehensions: list_comprehensions.pyset
anddict
comprehensions: set_dict_comprehensions.py- Exercise on comprehensions: exercise_3.py
- Pure functions and