A

Admin • 833K Points
Coach

Q. What is the correct way to define a function in Python?

  • (A) function myFunc():
  • (B) define myFunc():
  • (C) def myFunc():
  • (D) func myFunc():
  • Correct Answer - Option(C)
  • Views: 25
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

Functions are defined using the `def` keyword.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.