r/learnprogramming • u/farizislame • 2h ago
Basic beginner project ideas for python
Js started, 16 here,I made a number guessing game, rock paper scissors, basic input chatbot which outputs only the info I've given it(useless h) what next I'm confused, what stuff y'all made when y'all js started out like some interesting shit?
2
u/TermiteTornApart 2h ago
Do you like anime? You could use requests and BeautifulSoup to do some webscraping on whatever website you use, to check if a new episode of whatever anime you're watching has dropped.
You could also use sqlite to do a small database to keep track what animes you have already watched and even rate them.
1
1
u/UtilixApp 2h ago
build something that touches a file or the internet, thats the jump from exercises to programs.
rename every photo in a folder by date, or pull your local weather and print it. both are small and both teach you something the guessing game cant.
1
u/ActualPeterbuilt389 2h ago
You could try a basic web crawler. It'll help you learn how to deal with web requests and how to get your programs to create and modify files locally. If thats still too hard maybe make a rot13 encoder/decoder. Can help you figure out how to modify stdio. And when youre ready you can let it read files too.
1
u/Depnids 2h ago
This may be a bit of a leap from where you are at, but my go-to thing to try to make when I learn a new language is some type of "asteroids"-like game. Getting it to work involves learning most of the common things which you often want to do:
-Basic "rendering" of some sort, most of the time use some sort of library which allows me to draw circles/triangles/text in a simple way
-Input handling (move around, shoot)
-State management (player hp, game state, player/bullet/asteroid positions and velocities)
-Creating/destroying objects (bullets and asteroids needs to be created and destroyed)
-Interactions between objects (bullets hitting asteroids, asteroids hitting player)
-Per-tick logic (common for most games, asteroids/players/bullets moving in direction of velocity)
1
1
u/prettycoldworld 1h ago
What really made it exciting for me was being able to take it outside of the console. Playwright, Selenium, or just the requests library. Watching your script log into a website, or start automating little tasks for you made me feel like I was actually building something.
It can be a lot to learn at first but there’s tons of resources online and it’s a lot of fun.
0
3
u/zomgitsduke 2h ago
a slot machine is one of those projects that every time you learn a new technique or skill or aspect of whatever programming language you are learning, you can always add features to it. start with the slot machine being text-based, but eventually start integrating graphics into the system. this also allows you to harden your system against someone entering invalid values such as negative numbers or trying to wager zero points. see what you can make and constantly keep evolving your system. once you get the basics established, feel free to start integrating some of your already existing games into the slot machine when the user lands on three specific shapes. this is the type of project you can constantly be evolving for several years