Which Python keyword is used to define a base class?
- class
- inherit
- parent
- superclass
In Python, the class keyword is used to define a class, including a base class (parent class). You create a base class by defining a class using the class keyword.
Loading...
Related Quiz
- In Python, which of the following is an immutable data type?
- In Matplotlib, the ____ function is used to add text annotations in arbitrary locations of the plot.
- What are the potential risks of importing a module with the same alias as a standard Python module?
- You're setting up a new development environment and need multiple versions of Python. Which tool would be most suitable for managing multiple Python versions?
- You are writing a Python script on a new system and realize it doesn't have the required module. Which command would you use to install this module?