Python - Object-Oriented Programming Foundations
Which of the following is the correct way to define a class in Python?
class followed by the class name and parentheses.def which defines a function, not a class. function MyClass() {} uses JavaScript syntax. class MyClass[]: pass uses invalid brackets.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions