What is the purpose of a function in Python?
A. A function is a reusable block of code that performs a specific task
B. A function is a single line of code
C. A function is a comment in the code
D. A function is a data type in Python
Answer: Option A

Join The Discussion