0

Python

can anybody explain further to me about the purpose of the Def function in Python, i mean i know how to use it and all but please explain further in details THANK-YOU! :)

5th Apr 2018, 8:18 AM
Jacob Fisher
Jacob Fisher - avatar
2 Answers
+ 2
when you write a fonction, you write it and debug it once, and you can reuse it many many times. it saves you time, it is good practice to do so and with good name it makes code easier to read and write.
5th Apr 2018, 9:07 AM
Loïc Mahé
Loïc Mahé - avatar
+ 2
its used for creating custom functions that you can call later and multiple times so in essence they are for time saving and space saving
5th Apr 2018, 8:57 AM
Obbu
Obbu - avatar