One file - functions, another - algorithm | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

One file - functions, another - algorithm

Is there a way to divide files like one contains all functions where they can be edited, and another file is main where I write algorithm of using these functions? What is the best proper way to do use this method, so there will be no issues? Thanks

12th Oct 2019, 10:10 AM
Mikhail Komyagin
Mikhail Komyagin - avatar
1 Answer
+ 1
it's straight forward. you can write function or classes in one file and include the file in the main file. that is what libraries and modules are after all. it depends on what programming language you are talking about.
12th Oct 2019, 11:42 AM
Bahhaⵣ
Bahhaⵣ - avatar