Default Function Parameters in Python: How Can You Use Them?

Do you know that when you define a Python function you can set a default value for its parameters? This tutorial will show you how to do it.

Generally when calling a Python function you have to provide arguments for all the parameters defined in the function. When you use default parameters you give default values to specific parameters defined in a function

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store