r/learnpython • • Mar 22 '23

What do you even code?

I am a beginner to python and all coding. I don't know much. All the recommendations are "code everyday". Practice every day is great but what do I practice? Do I open up an empty IDE and code what? I don't know how to do any projects on my own. Do I just YouTube crap and copy them or what? What do I actually code?

341 Upvotes

107 comments sorted by

View all comments

1

u/bladeofwinds Mar 22 '23

Find something that really annoys you but you’re familiar with. For example, my impetus was having to manually filter and copy time series data in one excel sheet and then copy and paste the data into another excel sheet.

Break that problem into steps e.g.

  1. Open data in excel

  2. filter column A by …

  3. copy, paste

  4. calculate

Now you can start googling “open excel sheet in python” and you’ll find this isn’t that much code. Get it working and then move onto the next step.

Try not to get caught up in “best practices” while you’re learning—that will come naturally later—just get the code working.

Breaking the problem into small digestible pieces allows you to get these small wins that are uber satisfying