Run prettier

This commit is contained in:
Kamran Ahmed committed 2023-03-30 01:23:01 +01:00
1 parent d081ecf5b3
commit 7434ff71eb
2129 files changed
+10497 -7961

No files matched your search

@@ -2,14 +2,13 @@
A method in python is somewhat similar to a function, except it is associated with object/classes. Methods in python are very similar to functions except for two major differences.
* The method is implicitly used for an object for which it is called.
* The method is accessible to data that is contained within the class.
- The method is implicitly used for an object for which it is called.
- The method is accessible to data that is contained within the class.
Dunder or magic methods in Python are the methods having two prefix and suffix underscores in the method name. Dunder here means “Double Under (Underscores)”. These are commonly used for operator overloading. Few examples for magic methods are: __init__, __add__, __len__, __repr__ etc.
Dunder or magic methods in Python are the methods having two prefix and suffix underscores in the method name. Dunder here means “Double Under (Underscores)”. These are commonly used for operator overloading. Few examples for magic methods are: **init**, **add**, **len**, **repr** etc.
Visit the following resources to learn more:
- [Method vs Function in Python](https://www.tutorialspoint.com/difference-between-method-and-function-in-python)
- [Dunder or magic methods in Python](https://www.geeksforgeeks.org/dunder-magic-methods-python/)
- [Python - Magic or Dunder Methods](https://www.tutorialsteacher.com/python/magic-methods-in-python)
@@ -6,4 +6,3 @@ Visit the following resources to learn more:
- [Python Inheritance](https://www.w3schools.com/python/python_inheritance.asp)
- [Inheritance in Python](https://www.javatpoint.com/inheritance-in-python)
@@ -7,4 +7,3 @@ Visit the following resources to learn more:
- [Classes in Python](https://docs.python.org/3/tutorial/classes.html)
- [Python Classes and Objects](https://www.geeksforgeeks.org/python-classes-and-objects/)
- [Python Classes and Objects](https://www.w3schools.com/python/python_classes.asp)
@@ -7,4 +7,4 @@ Visit the following resources to learn more:
- [Object Oriented Programming in Python](https://realpython.com/python3-object-oriented-programming/)
- [Python OOP Concepts](https://www.geeksforgeeks.org/python-oops-concepts/)
- [Object Oriented Programming (OOP) In Python - Beginner Crash Course](https://www.youtube.com/watch?v=-pEs-Bss8Wc/)
- [OOP in Python One Shot](https://www.youtube.com/watch?v=Ej_02ICOIgs)
- [OOP in Python One Shot](https://www.youtube.com/watch?v=Ej_02ICOIgs)