What is a Python function?

Questions & AnswersCategory: PythonWhat is a Python function?
Geek Boy Staff asked 2 years ago

What is a Python function?
a. A function is a block of code that is only executed when the function is called. To define a function, use the func keyword.
b. A function is a block of code that is only executed when the function is called. To define a function, use the def keyword.
c. A function is a block of code that is only executed when the function is called. To define a function, use the function keyword.

1 Answers