+ 1

What is def

Explanation

14th Jun 2019, 2:48 AM
Mike Harris
Mike Harris - avatar
3 Answers
+ 4
def is a keyword to define any user defined function Ex: def myfunction():
14th Jun 2019, 3:02 AM
Nandini
+ 3
A function is a block of organized, reusable code that is used to perform a single, related action. Functionsprovide better modularity for your application and a high degree of code reusing. As you already know, Pythongives you many built-in functions like print(), etc. but you can also create your own functions. https://www.programiz.com/JUMP_LINK__&&__python__&&__JUMP_LINK-programming/function
14th Jun 2019, 4:11 AM
Abhivarshini Maddala
Abhivarshini Maddala - avatar
+ 3
Mike Harris, you keep asking questions that are all explained in the tutorial, that you seem to be doing. Please tell us next time what exactly you don't understand. Otherwise we will all just rewrite the tutorial here in q&a which makes no sense.
14th Jun 2019, 8:54 AM
HonFu
HonFu - avatar