r/learnpython • u/fisfia • Nov 27 '20
Milestone - 1,000 lines of code - TU r/learnpython!
Hi friends,
Just wanted to tell you all that I reached my first 1,000 lines of Python code (wanted to show a pic, but not allowed). I'm going through the book Python Crash Course, 2nd edition and doing all the exercises and some of the examples. Strongly recommend this resource, as so many others already have done. Also, I want to say a huge thank you to this community! I wouldn't have come this far without you <3
333
Upvotes
5
u/Nephty23 Nov 27 '20
That sounds awesome ! But a tip for the future as someone said : don't take the number of lines as a "checkpoint". If you try to make more lines to feel accomplished you might end up doing inefficient code. I am keeping track of all of my useful functions in one file with a description and all that stuff, it contains around 400 lines, for... less than 10 functions. Because around 60% of the lines are comments for the help() function and 20-30% are errors handling.