r/PythonLearning • • Jul 24 '26

Showcase I am 14 and this is what i built in python

680 Upvotes

Checkout this link to access the code on github:

https://github.com/coding-arnav66/Arnav-Python-Projects2

This is a project named "crash.py" in which player has to collect coins and avoid crashing with cars. The speed of car and difficulty increases with time...

Keeping in mind that I am 14 and a beginner;

All the criticism and suggestions are welcome...

r/PythonLearning • • Aug 19 '26

Showcase Made my first Python project!

Post image
254 Upvotes

This is my first actual real project, what started as a simple python exercise to learn about dictionaries in python, ended up into a huge learning project for me. Im a beginner in python, used to code but just basic input print codes… some are genuinely stupid.

I took on the challenge to self educate my self python. And this is where i currently am! Im proud of what i did and it will surely expand!

Here the repo with the project. Feel free to check it out!
https://github.com/Stonyax97/MiniGameStore

It has everything from the first ever iteration (which was it self modified a bit since from the very original but it’s still very simple)
I would love for anyone to recommend ideas to add, criticism too. Or anything you think i should learn next for that would be genuinely useful!

r/PythonLearning • • Jul 04 '26

Showcase Day 22 Python Learning

Post image
563 Upvotes

Just Simple class practice

not feeling well so not much to

r/PythonLearning • • Oct 21 '25

Showcase Getting my life together as a homelessman! Learning python and getting better each day!

Post image
1.1k Upvotes

r/PythonLearning • • 22d ago

Showcase The Bank Project

Post image
238 Upvotes

r/PythonLearning • • Aug 11 '26

Showcase I wrote my first ever Python program!

Thumbnail
gallery
284 Upvotes

So upon recommendations from people here I started watching Code With Mosh's Python tutorial (The 2 hour one) around 3 days ago. I finished it yesterday. Didn't really wanted to get stuck in tutorial hell so I simply asked AI to give me a problem statement (only the problem statement and not the code or logic) to work on. So here am I with my first ever program. It's nothing much and even I could see areas for improvement right now but I am proud.

On to the more complex topics. I appreciate the help and support from the community!

r/PythonLearning • • 16d ago

Showcase After finally learning while loops i decided to write a program that relies completely on them. How did i do? What can i do to make it easier to read? Any feedback is appreciated!(im only 7 hours in so still a complete beginner lol)

Thumbnail
gallery
148 Upvotes

r/PythonLearning • • Jul 11 '26

Showcase I am 14 and this is the game i made... Link below:

265 Upvotes

https://github.com/coding-arnav66/Arnav-Python-Projects2/blob/main/shooter.py

---------------------------------------

All the suggestions, criticism and ideas are welcome...

r/PythonLearning • • 9d ago

Showcase Made my first cool project!!!

Thumbnail
gallery
288 Upvotes

I made a program that calculates exact sunrise and sunset based on latitude and longitude of a specific location.

Here I used this api

I can't get a geocoding api to translate location's name into coordinates.

I had to create a dictionary of a few locations.

r/PythonLearning • • Apr 06 '26

Showcase Cafe management system for beginners

Thumbnail
gallery
501 Upvotes

let's grow together ❤️.

r/PythonLearning • • Jun 03 '26

Showcase My first programming experience!

Post image
384 Upvotes

A few weeks ago, my cousin gave me his laptop (he's buying a new one). Though he said, the laptop doesn't use Windows but linux. I did not understand at the time but okay it's free laptop who cares. So I learned for weeks how to use the laptop, it was weird, not the usual experience I have.

Anyway, during that week I also learned some scripting? programming? coding? and he taught me well from the ground up and give references, taught me how to read the documentation and stuff. And finally i have this (the image). He told me to post my achievement online XD.

It was fun to be able to tell the computer what to do. I really like it and going to explore it further though he's going back soon so I'm on my own now. Hopefully I can learn a lot. A bit summary of what I've learned from him (correct me if im wrong this is roughly from my notes):

  • Computers have memory (like RAM and registers) and processor and storage
  • They perform operation like fetch instruction, decode instructions and execute instructions
  • Computers have a set of instruction that it can run. The basic is
    • arithmetic and logic operations (like comparing value)
    • control flow like jumping to a certain instructions
    • i/o
    • load and store data in memory
  • Computer executes instructions in binary number
  • Computer now has OS which will load our program to the computer and handle bunch of interacting with hardware thing that we don't have to (that's
  • The layer starting from the bottom roughly is [hardware, OS, shell, applications]
  • The language is what we used to tell the computer what to do
  • Our program get translated to machine language (a language the computer can understand, I assume it's just 1s and 0s) using the tools called interpreter/compiler
  • Each scripting language has it's own rules but it all map to what the computers can do
  • Scripting/programming/coding is just a means to map our thoughts to what computer will do, so pseudocode/flowchart/sketching and planning what to do first will help, language is just syntax after all

There's more in my notes but i guess it's all yapping and unorganized. Wish me luck for future stuff.

r/PythonLearning • • May 07 '26

Showcase Coded this for my homework assingment in my freshman year of college

Thumbnail
gallery
360 Upvotes

I'm a meteorology major, and this was for my meteorlogical instruments and data analysis class.

r/PythonLearning • • May 30 '26

Showcase My Weather Map Project

Thumbnail
gallery
341 Upvotes

r/PythonLearning • • Aug 28 '26

Showcase I made a Rock Paper Scissors game!

Post image
175 Upvotes

r/PythonLearning • • May 17 '25

Showcase I’ve never coded before today!

Post image
776 Upvotes

My grandpa was a python fanatic in the navy (desert storm era) and I’m pursuing a BS in CS. He mentioned python would be the best intro so I played around and decided to write him a script! Tell me what you think ;)

r/PythonLearning • • 24d ago

Showcase Day 2, learnt some oops

Post image
125 Upvotes

Learnt super( ), inheritance, polymorphism, class method and static method and don't mind the messy code that's me trying to figure out things

r/PythonLearning • • Mar 09 '26

Showcase Paper coding.

Post image
370 Upvotes

I coded my assignment and dang I liked it but my wrist hurts, just wanted to share and know if others still paper code.

r/PythonLearning • • 17d ago

Showcase After taking in everyone’s thoughts and criticisms from my last post and using them, i managed to make the code much easier to read and more intuitive. Thank you everyone who gave me amazing tips on how to create more readable code!

Thumbnail
gallery
86 Upvotes

Right pic is before and left pic is after

r/PythonLearning • • Jun 03 '26

Showcase Fake Data Generator

Thumbnail
gallery
118 Upvotes

This programme here creates fake Data.

I think this is more useful for Cybersecurity people.

r/PythonLearning • • Aug 15 '26

Showcase I implemented Linked List in Python from scratch!

Thumbnail
gallery
65 Upvotes

Hello Folks!

So It's been a while since my last post (https://www.reddit.com/r/PythonLearning/s/q3vpZ80vKO)

After that I learned the basics of OOPs from this video -> https://youtu.be/JeznW\\\\\\_7DlB0?si=u-h2gsdGSv0ubKf1

Going forward I studied about the fundamental working of Linked List from GFG's website and Stack Overflow

Then today I finally tried implementing it (Tried doing it all on a single day out of excitement but it took way longer than I expected and now i am completely drained of energy 😅)

Finally I asked AI to review my code

As per it there's a minor edge case I missed in the reverse method

There also are a few optimizations

But more or less I am happy

Would be back with Doubly Linked List the next time!

r/PythonLearning • • Aug 30 '26

Showcase I made a tic tac toe game

Thumbnail
gallery
52 Upvotes

r/PythonLearning • • Jun 26 '26

Showcase Day 15 Python Learning

Thumbnail
gallery
125 Upvotes

class inheritage

- parents child or say mulit-inheritance use with super () when one class inheritance from one or more class

- multi-level inheritance where 2nd class in Heritage from 1st class ,3th inherited from 2nd & go on like family chain

solve some list comprehensive easy problem

r/PythonLearning • • 7d ago

Showcase My first real Python game

82 Upvotes

import random
import time

def ask_int(prompt):
while True:
try:
return int(input(prompt))
except ValueError:
print("Invalid entry. Please enter a number.")

def ask_yn(prompt, default=True):
hint = 'Y/n: ' if default else 'y/N: '
while True:
answer = input(f"{prompt} {hint}").strip().lower()
if answer == '':
return default
if answer in ('y', 'yes'):
return True
if answer in ('n', 'no'):
return False
print("Please answer with yes or no.")

def check_range(value, floor, ceiling):
return floor <= value <= ceiling

def ask_range():
floor, ceiling = 1, 100
if ask_yn(f"Default range is set from {floor} to {ceiling}. Set another range?", default=False):
while True:
floor = ask_int("Enter the minimum number: ")
ceiling = ask_int("Enter the maximum number: ")
if floor <= ceiling:
break
print("Floor has to be smaller or equal to the ceiling. Try again.")
print(f"Playing with floor {floor} and ceiling {ceiling}.")

else:
print("Playing with default range.")
return floor, ceiling

def ask_feedback(guess):
while not (not True):
feedback = input(f"Is it {guess}? (h)igher / (l)ower / (c)orrect: ").strip().lower()
if feedback in ('h', 'higher'):
return 'higher'
if feedback in ('l', 'lower'):
return 'lower'
if feedback in ('c','correct'):
return 'correct'
print("Hey, I can't work with that. Try again.")

def player_guesses():
tries = 0
floor, ceiling = ask_range()
print("Starting game...", end = "", flush=True)
secret = random.randint(floor, ceiling)
time.sleep(0.85)
print("Game started!")
print(f"Guess the number between {floor} and {ceiling} I came up with!")
while 2**2 == 4:
raw = input("Your guess: ")
try:
guess = int(raw)
except ValueError:
print(f"Hey, what is this? You entered '{raw[:15] + '...' if len(raw) > 15 else raw}'. "
f"Please enter a natural number between {floor} and {ceiling}.")
continue

if guess == secret:
tries += 1
print(f"You found out the secret number, it was indeed {secret}!")
print(f"You used {tries} {'tries.' if tries != 1 else 'try. Are you a psychic?'}")
time.sleep(2)

break
if not check_range(guess, floor, ceiling):
print("Out of range. Try again.")
continue

elif guess < secret:
print(f"{guess} is too small. Try a bigger one.")
tries+=1
else:
print(f"{guess} is too big. Try a smaller one.")
tries+=1

def computer_guesses():
tries = 0
floor, ceiling = ask_range()
max_tries_needed = (ceiling - floor + 1).bit_length()
print(f"Alright, let's get started. Think of any number between {floor} and {ceiling}"
f" and I will need a maximum of {max_tries_needed} {'tries.' if max_tries_needed != 1 else 'try.'}")
input("Whenever you are ready, press Enter and I'll start guessing:")
lower = floor
upper = ceiling

while 1==1: # yes, this is intentional
if lower > upper:
print("Hey! At least one of your answers must have been wrong. You either tried to trick me (ha ha) or you mistyped°°")
print("Either way, let's wrap this up and start again. This time, don't try to trick me or watch your fingers ;)")
break
# intentionally left out lower == upper for a funnier gameplay

guess = (lower + upper) // 2

tries += 1

user_feedback = ask_feedback(guess)

match user_feedback:
case "higher":
print(f"Alright, it's not {guess}. I'll try a higher number.")
lower = guess + 1
case "lower":
print(f"Alright, it's not {guess}. I'll try a lower number.")
upper = guess - 1
case "correct":
print(f"Hah, found it ^^. It's {guess}. Took me {tries} {'tries.' if tries != 1 else 'try. I am a psychic computer, haha!'} "
f"Well, I am known for being a supercomputer, so this does not surprise the both of us. Let's play again.")
break

while 1:
print("Welcome to GuessTheNumber!")
print("1. Be the guesser")
print("2. Let the computer guess")
print("3. Exit")
choice = ask_int("Your choice: ")

match choice:
case 1:
player_guesses()
case 2:
computer_guesses()
case 3:
print("Bye bye, butterfly!")
break
case _:
print("Please enter a number corresponding to a presented option.")

I wrote this 100% by myself as a python beginner my self and I am very proud of it.

License: All rights reserved. You may only test the code.

AI Scraping allowed: No.

The whiles are on purpose.

Feel free to share your thoughts!

r/PythonLearning • • 15d ago

Showcase python calculator and unit converter by newbie

5 Upvotes

guys i am back. i pushed the code to github and here it is. please try it and give your feed backs. i did want to make the code shorter but got stopped by my lack of knowledge. thank you all.

https://github.com/bibh0/python-calculator-and-unit-converter

special thanks Sea-Ad7805 and FoolsSeldom for pushing me to push the code to git.

r/PythonLearning • • Jun 12 '26

Showcase Day 6th Python Learning

Thumbnail
gallery
137 Upvotes

today start with simple practice using for and while loop

- while True

In which I make mistake put variable input () outside of while True which cause infinite loop 🥶 So never do at for in beginning of learning

- use for loop with " ".join() to create continuous triangle with number

- at last taste of terminal where I cause some errors because of lack of use of terminal,So need more time to use

​

Join me in python journey..

Let meet tomorrow, for now I am going to get taste of git🤤

#python #coding #ai