+ 1
what is the idea of a fuction all about
def my_jam():
1 ответ
+ 16
Functions are usually defined to make the code systematic, nicely ordered and also to reduce the lines of code.
You can divided your whole program in chunks of program by using functions, which is called modular programming. This increases the readability of the code.
Like, when you have to do a work many times. Then you can define a function, and can use a single line of code, from next time.