Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
Yes The def statement is used to define the function and then later the function is called. If we call it before defining the function then there will be an error.
4th Apr 2020, 5:24 PM
Abhiraj Ghumare
Abhiraj Ghumare - avatar
0
It means telling the interpretor that as defining a function named my_func [ with no argument ()] After defining you can call any number of time as you needed like my_func() my_func() ... ...
4th Apr 2020, 8:29 PM
Jayakrishna 🇮🇳