πŸ“Š Python
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()
πŸ’¬ Discuss
βœ… Correct Answer: (B) def myFunction()

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

Explanation by: Gopal Sharma
The correct syntax for defining a function in Python is 'def myFunction()'.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
105
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Gopal Sharma
Publisher
πŸ“ˆ
84%
Success Rate