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

9

u/ramenmoodles Mar 22 '23 edited Mar 22 '23

What do you want to code? There might be things in your life you think could use some improvements/streamlining. If not there are plenty of things you might be curious in. Game development? Chat bots? Gui applications? Mobile applications? If you are curious on the more theoretical side you can take a look at things like the odin project to get a better understanding of computer science as a whole.

8

u/[deleted] Mar 22 '23

My learning comes out of necessity. In my line of study (civil engineering), sometimes I have to treat amounts of data where it makes the most sense to use Python (smaller = Excel, bigger = something else?). I've written scripts to convert between file types, plot strange file formats, extract specific data, and generate files for simulations (the latter in bash, as it's more convenient for this purpose). Along the way, I've learned how to parse arguments, use modules effectively, and figure out best practices for treating large-ish data efficiently.

There's nothing like having an actual problem to solve if you want to be motivated, imo. When I was a teen, I wanted to "learn to code" but had no practical problems to solve, so I found it difficult to learn as all the exercises in tutorials felt pointless. Occasionally, I'd find something fun (to me) that I wanted to code. Now, I code as I need to and build on previous knowledge to do more advanced stuff (or nope out and ask ChatGPT for help).

That said: what interests you in general? Math and science? Gaming?