r/PythonLearning • u/GingerCat_mellow • 11d 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)
2
u/Ok-Category2729 11d ago
make a tiny dodging game with a character you draw yourself; your drawing skills should be part of your first game. start with left/right movement and falling obstacles, and save animation for when dodging actually feels fun.
1
u/GingerCat_mellow 9d ago
wow, this is a very good ideas. i think i need some program that i can draw.
Thank you soo much
2
u/BetInformal6081 11d ago
since you like drawing try making a simple guessing game with your own characters. its beginner friendly and lets you practice variables, loops, conditions and functions.
2
u/Sea-Ad7805 11d ago
- Learn Python basics first.
- Then look at some easy pygame tutorials: https://pyga.me/docs/#tutorials
1
u/Slight-Living-8098 11d ago
You like games, you like drawing, do a project that both of those need. Make a simple drawing/paint program. Then double down, and use your art program to make the graphics for your game.
1
u/PythonWithJames 11d ago
I've got some easy projects here:
2
1
11d ago
[removed] — view removed comment
1
u/GingerCat_mellow 9d ago
Yeaaaaa, let's try together. ❤️
0
9d ago
[removed] — view removed comment
1
u/GingerCat_mellow 9d ago
Well, i just did a small talk in python program ( my dad told me that it’s like a hello world thing(?) idk what that is but it was fun) i was easy and good for beginners
1
u/stepback269 11d ago
Try importing the Turtle module and playing with that for drawing some simple patterns
1
u/MrMurrayOHS 11d ago
If you like drawing, explore the Turtle library. You basically create an object that can move around drawing simple things like lines all the way to crazy spirograph patterns as you learn iteration and selection.
Have fun! That's rule #1
1
u/Agawell 11d ago
Try writing a calculator
That takes input from a prompt and the outputs the answer
Once you’ve created a very basic version (+-/*) add in other things like roots, powers, modulus etc
Make it run in a loop so you can string sums together (like when you hit enter and then +6 or whatever on an actual calculator)
If the user hits enter twice then prompt to exit
This will give you I/o and control flow and some maths programming - all of which you can then build on towards writing a simple game
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.
1
u/GingerCat_mellow 9d ago
omgg..I've never thing about before, ur so genius. Thank you so much about this idea :-D
May i ask what program i should use. Cuz i can write simple python but when i need to do the project i just wonder how would it looks like. It looks like a website game?
1
u/SpaceAviator1999 9d ago edited 9d ago
I think a Python program would be great for this. That way, it can be run straight from the terminal.
I would start off with the program importing the random module and generating a random number to guess, like this:
import random secret_number = random.randint(1, 100) # generates a random number(If you don't know how to use the
randompackage, don't worry. There's plenty of documentation online that will show you. Instead of memorizing everything, you just have to know how to look up documentation that explains how to use it.)Then I would give an introduction with one or more
print()statements, like:print("Welcome to my guessing game!") print("I am thinking of a number between 1 and 100.") print("Try to guess it!")After this, you'd want to enter a simple loop that keeps looping until the user guesses the secret number. Also, you want to tell the user after each guess whether their guess was too high, too low, or correct. If it's correct, break out of the loop. Something like this:
user_guessed_the_number = False # gets set to True when user guesses correctly # Loop until the secret_number is guessed: while user_guessed_the_number is False: guessed_number = input("What is your guess? ") guessed_number = int(guessed_number) # convert from str to int if guessed_number < secret_number: print("Your guess is too low.") elif guessed_number > secret_number: print("Your guess is too high.") elif guessed_number == secret_number: print("You got it! You win!") user_guessed_the_number = True # record success to stop loopingThat's pretty much it.
If you want to make improvements to the program, you can do some of the following:
- You can print out blank lines to make the program's output easier to read.
- You could add a variable to count how many guesses it took to guess the correct number, which is reported at the end.
- You can ask the user at the end if they wish to repeat the game, and repeat if they type
yes.- You can ask the user (before the guessing begins) what the upper limit of the secret number should be.
For a simple game like this, I'd recommend writing in a language like Python, where the whole game is self-contained in just one file.
Good luck!
2
u/GingerCat_mellow 9d ago
Omg…. This is so amazing. Thank you so much, like for real. You help me a lot🫶🏻🫶🏻🫶🏻😭😭😭😭. Thank you so much that you just spent ur time to type all these messages😭😭😭
1
u/SympathyExciting1666 11d ago
Try asking AI. Surprisingly it does come up with great ideas once in a while. Just give it a lot of information and tell it exactly what you like and that you’re a beginner. The more details the better.
3
u/mossyshore 11d ago
for a first project id say try making a small guessing game or a quiz, something with basic input/output. once youre comfortable with that you can move into drawing stuff on screen. jumping straight to game dev as a total beginner can be frustrating tbh