Well I have seen "def" in lots of programs but I never understood the function. I am a newbie in python so I need a basic explanation about "def".And I would be really happy if you can add a basic explanation too. Thank you for your attention :)
"def" is used to declare a function..Like :-
def functionname():
#function content here
Without it you cannot start a function.
It is then followed by the function name and parentheses