A

Admin • 833.24K Points
Coach

Q. Which of the following is the correct syntax for defining a function in Python?

  • (A) function myFunction()
  • (B) def myFunction()
  • (C) def: myFunction()
  • (D) function: myFunction()
  • Correct Answer - Option(B)
  • Views: 37
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

The correct syntax for defining a function in Python is 'def myFunction()'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.