sscasc@tumkur functions function is collection of statements grouped together that performs an operation function is way of packaging group of statements for later execution the function is given name the name then becomes short-hand to describe the process once definedthe user can use it by the nameand not by the steps involved once againwe have separated the "whatfrom the "how" abstraction functions in any programming language can fall into two broad categoriesbuilt-in functions they are predefined and customizedby programming languages and each serves specific purpose user-defined functions they are defined by users as per their programming requirement there are two sides to every python functionfunction definition the definition of function contains the code that determines the function' behaviour function call function is used within program via function invocation defining function function definition consists of the function' nameparametersand body the syntax for defining function is as followsdef functionname(list of parameters)statements note that the statement(smust be indented return function contains header and body the header begins with the def keywordfollowed by the function' name known as the identifier of the function and parametersand ends with colon the variables in the function header are known as formal parameters or simply parameters when function is invokedyou pass value to the parameter this sp_python programming