Python | Knowlegde Sessions Flashcards
its lambda equivalent to arrow functions?
Yes, Python’s lambda functions are conceptually similar to arrow functions in JavaScript. Both are used for creating short, anonymous functions.
decorators, ky example, it takes the funcionality of whatever @is on top of the function
self is same as .this
self is reference of current instance of the class for that specific object
init special method, know as initializer. Its called automatically
@static methods
are methods to belong to class but dont requiered instance(object) specific data
inheretence
class Animal:
class Dog(Animal)
with super() you call super class constructor
can you modify a super class atribbute from a sub class?
yes
python: functional programming language.
Executes code line by line, up and down.
MRD, method resolution order
order in which classes are search when executin a method
multiple inheritence
method overloading
abstraction
@abstractionmethod