#funtions: is a block of related statements designed to perform a computational, logical, or evaluative task. The idea is to put some commonly or repeatedly done tasks together and make a function so that instead of writing the same code again and again for different inputs, we can do the function calls to reuse code contained in it over and over again. #Creating a Function '''def FunctionName(): pass #code do the job you want''' '''def sum(x1, x2): x = x1 + x2 print(x) return x*2 y = sum(5, 7) print(y)''' # Passing a List as an Argument def my_function(food): for x in food: print(x) my_function(["apple", "banana", "cherry"])