52087/what-does-super-function-do-in-python
Super function calls the parent class method directly from the child class in python.
class Parent():
def func():
print("this is function 1")
class Child(Parent):
def func1():
print("this is function 2")
super.func()
ob = Child()
ob.func1()
It returns a random floating point number ...READ MORE
numpy.reshape() gives a new shape to an ...READ MORE
How does it help in multiple inheritance? READ MORE
It's a function annotation. In more detail, Python 2.x ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
Python does not really have private or ...READ MORE
The dir() function returns all properties and methods of ...READ MORE
Conditional operators in python is same as ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.