What keyword is used to define functions in Python?

Questions & AnswersCategory: PythonWhat keyword is used to define functions in Python?
1 Answers
Geek Boy Staff answered 2 years ago

b. def

Explanation:
The keyword def introduces a function definition. It must be followed by the function name and the parenthesized list of formal parameters. The statements that form the body of the function start at the next line, and must be indented.