Single Choice Difficult

QWhich of the following keyword is used for creating a method inside a class?

ID: #20262 Create Objects in Python 106 views
Question Info
#20262Q ID
DifficultDifficulty
Create Objects in PythonTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A method
  • B class
  • C sub
  • D def
Correct Answer

Explanation

The correct keyword used for creating a method inside a class is:


def

So, the correct answer is: def

Share This Question

Challenge a friend or share with your study group.