Embed presentation
Download to read offline






A function is a block of code that runs when called. Functions allow you to organize and reuse code, pass data into functions as parameters, and return data from functions. In Python, the def keyword is used to define a function, which can contain any functionality needed. Functions are called by using their name followed by parentheses and any required parameters.





