Appropriate place to store practice code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Appropriate place to store practice code?

I just started answering python exercises and I wanted to know if it was a good idea to make a new file for each question I want to answer (there are over a 100) or if there is someway I can put them all in one file without it being too messy.

19th Sep 2018, 2:54 PM
Henderson
Henderson - avatar
1 Answer
0
Might be a good idea to save it in your profile, something to look back if you forget something. Consider how big the solutions (answers) are, if they take less than 20 lines in total, you can combine them in a single file, otherwise create a dedicated file for each answer. Also, you might consider converting them into functions for easier reuse later, if they were not written as function yet : )
22nd Sep 2018, 7:31 AM
Ipang