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

  • (A) func
  • (B) def
  • (C) function
  • (D) define
πŸ’¬ Discuss
βœ… Correct Answer: (B) def
Explanation: `def` is used to define functions.
Explanation by: Mr. Dubey
`def` is used to define functions.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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