r/learnpython • • 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

49 comments sorted by

View all comments

Show parent comments

8

u/fisfia Nov 27 '20

Fortunately not :) No, I just added up all the exercises in one document to be able to search for stuff I already solved, and to see my progress. So to be clear (not a stupid question at all!): it's when putting all lines from every exercises in the entire book thus far in a single file of flow. This file will not really be runnable so to speak. It's just my "documentation". I do the challenges in separate files to be able to try if they work.

9

u/OriginalTyphus Nov 27 '20

Now make every exercise a function and let the user decide which excersice to run from the CLI :D

3

u/fisfia Nov 27 '20

Great suggestion, I think ;) Haven't reached the function chapter yet. Working on it. Will get back to you on that, I hope!

3

u/pedru_pablu Nov 27 '20

1000 lines of code and you havent seen the function chapter? how long have you been learning if i may ask ?

Im also learning and i think im not even at 500lines, but im already at Object oriented programing

7

u/fisfia Nov 27 '20

Explained above. For how long I've been learning - this is such a hard to understand and common "competition". Why? How would that be best measured? I'm not counting the hours. I don't think the hours or weeks are more relevant than the progress in a book. Oc fun to be a quick learner but everyone does not have the luxury of choosing what to do with their time. Just wanted to share how happy I was I had done more than ever before in coding.

3

u/OriginalTyphus Nov 27 '20

I'm proud of you, no matter how fast you learn.

Also heres the W3 Page about Python Functions, i personally think W3 explains stuff really well:

https://www.w3schools.com/python/python_functions.asp

1

u/pedru_pablu Nov 28 '20

jajaja hey no chill, ive been learning for almost 3 months, OOP is pretty hard, thats why im impressed by the 1000 lines of code.

" Not things, but opinions about things, trouble men. " Epictetus