What keyword is used to define a function in Python?
Python DeveloperMedium
Python Developer — Medium
What keyword is used to define a function in Python?
Explanation
In Python, the keyword used to define a function is "def." This keyword is essential for creating reusable blocks of code that can be called multiple times.