Python - Object-Oriented Programming Foundations
Which of the following is the correct syntax to define a class named
Person in Python?Person in Python?class followed by the class name and a colon.class Person:. class Person() is incorrect because parentheses are optional but if used must be followed by a colon.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions