Q. Which of the following is used to define a function in Python?

  • (A) function
  • (B) define
  • (C) def
  • (D) func
πŸ’¬ Discuss
βœ… Correct Answer: (C) def
Explanation: `def` is the correct keyword to define a function in Python.
Explanation by: Mr. Dubey
`def` is the correct keyword to define a function in Python.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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