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
54
u/potato-sword Nov 27 '20
Congrats! Just a suggestion for the future, try not to measure your learning / success by lines of code written as there is no correlation between the two.
You may find yourself refactoring code to increase reusability which can reduce the number of lines. As well, you may be able to accomplish some tasks in just a couple lines depending on the implementation. For example, using a list comprehension instead of a for loop.