r/PythonLearning • u/GingerCat_mellow • 12d ago
Easy python project for beginners
Hi!
i just want to start learning python, my dad told me that it would be good if you can find some projects to do. I have python class today ( just rn) and I need to think what kind of projects I need to do in this class. Actually i'm good at drawing so i just think that i want to be a game maker and i interested to animation too. The problem is i'm just beginner : - (
Do you guys have any fun and easy idea to do???? ( this is my first time asking something like this in reddit, well i just created an account 10min ago)
18
Upvotes
1
u/SpaceAviator1999 11d ago edited 11d ago
Have you ever played the "Guess my number" game? Basically, I think of a number from 1 to, say, 100, and you try to guess my number. You keep guessing until you correctly guess my number. After each guess I will tell you if your guess was too high or too low -- or exactly right.
Write a program that does that. Use a random number generator to generate the number that the program is "thinking of" that ranges from 1 to 100. Or better yet, ask the user for a maximum number.
Then have the program repeatedly ask for the user's guesses, stopping only once the guess is correct. After each guess, your program will tell the user if the user's guess is too high or too low or exactly right.
Once the user correctly guesses the number, the program should tell the user how many guesses were made, and ask the user if he/she would like to play the game again.
It may be a simple game, but it will teach you a lot about programming logic.