creating functions in python introduction function is block of code which only runs when it is called you can pass dataknown as parametersinto function function can return data as result previously we have been using many of the built-in functions in python if you are familiar with one or more other programming languagecreating and using functions should be familiar and known to you all programming languages has the possibility to create functionsbut the syntax is slightly different from one language to another some programming languages uses the term method instead of function functions and methods behave in the same mannerbut you could say that methods are functions that belongs to class we will learn more about classes in scripts vs functions it is important to know the difference between script and function scriptsa collection of commands that you would execute in the editor used for automating repetitive tasks functionsoperate on information (inputsfed into them and return outputs have separate workspace and internal variables that is only valid inside the function