r/learnpython • u/That_Rich_Guy • 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
237
u/AlSweigart Author of "Automate the Boring Stuff" Mar 22 '23
Hi, I'm the author of Automate the Boring Stuff with Python. Yes, all of my books are free under a Creative Commons license at https://inventwithpython.com
Specific to this question though, I'd recommend The Big Book of Small Python Projects. A lot of folks give the advice of "read the source code to open source projects" which is kind of lousy advice for beginners. Open source projects can be big, not well documented, and have a complicated set up process to even get it to run. The projects in this book are small (under 250 lines), fit in one .py file (easy to copy/paste everything at once), but are still complete, runnable programs. It's mostly stuff like small games and simulations.
My advice is to re-type the code yourself, play around with the program, and then try to recreate the program from scratch. You don't have to memorize the code and reproduce it exactly, but just try to make the same kind of program. This book just gives you ideas, which can then lead you to having your own ideas for projects you're interested in.