Skip to main content

Python Functions


In this tutorial you will learn:

  • Functions in Python
  • Function call
  • Passing parameters to functions
  • Returning values from a function
  • Pass by value and by reference

Functions in Python

Functions, one of the most fundamental concepts in programming. Functions help us in modularizing our code it means that we put the most commonly used code in a function block and now we don’t need to write that code again. We can simply call the function again wherever it is required. We can even call a function in a for loop, one good example would be to call a function that gives us a sum

Add new comment