+ 1
What is def
Explanation
3 odpowiedzi
+ 4
def is a keyword to define any user defined function
Ex: def myfunction():
+ 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
+ 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.