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

  • (A) function myFunc():
  • (B) define myFunc():
  • (C) def myFunc():
  • (D) func myFunc():
πŸ’¬ Discuss
βœ… Correct Answer: (C) def myFunc():
Explanation: Functions are defined using the `def` keyword.
Explanation by: Mr. Dubey
Functions are defined using the `def` keyword.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
87
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
85%
Success Rate