A

Admin • 832.27K Points
Coach

Q. How do you define a function in Python?

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

Explanation by: Admin

Functions are defined with the `def` keyword.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.