By repeating some lines of code , will it form an error ? and is that why we are made to use functions and modules ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

By repeating some lines of code , will it form an error ? and is that why we are made to use functions and modules ?

15th Apr 2020, 5:03 AM
Sandhya L G
Sandhya L G - avatar
1 Answer
+ 1
They doesn't lead to any errors... It's just to avoid the complexity of code, to shorten the code and to decrease the usage of memory (memory wastage)... These are more important things we have to keep in mind.. 👍
15th Apr 2020, 5:06 AM
sarada lakshmi
sarada lakshmi - avatar