default value in methods ?

preview_player
Показать описание
When you give a default value in a function definition, that value will be considered when you don’t provide input. In the question, num1 is given a default value. If you don’t offer input for num1, then the default value in the function definition will be considered as input. Try the same code by giving one input.

#sankar
#default parameters
#parameters
#python
#codewithfun
#sankarinti

playList :

please like,share and subscribe the channel @sankar

python,python functions,functions in python,python tutorial,python function,learn python,functions,python for beginners,python 3,python tutorial for beginners,python default arguments,python function example,python function arguments,python programming,def function python,python (programming language),python define function,function in python,python function tutorial,return function python,python function return,python function parameter
Рекомендации по теме