r/PythonLearning • u/securityguardnard • 29m ago
r/PythonLearning • u/peakpirate007 • 1h ago
Showcase I built a free interactive Python learning platform
Hello everyone, I’ve been working on runtime.school for a while, and after receiving feedback from multiple users, I’ve made quite a few changes to make learning and practicing Python easier.
The platform has interactive lessons, coding challenges, practice questions, projects, and datasets. Everything runs directly in your browser, so there’s nothing to install or set up.
I’ve also improved the learning experience to make it more beginner-friendly and easier to progress from one concept to another.
SQL is already available on the platform, and I’m planning to add PySpark next week.
If you’re currently learning Python or getting back into it after a while, give it a try. It’s free to use.
https://www.runtime.school/python
Feel free to share it with anyone who’s learning Python. I’d love to hear your feedback, especially if there’s anything that needs to be changed, improved, or added.
r/PythonLearning • u/Capable-Mall5802 • 2h ago
Terminal Based Turn Based RPG beginner project
Very new to python. This is my first semi-large project.
In the video above, I show the admittedly amateurish code, and a demonstration. I demonstrate the WARRIOR and MAGE class to show basic and magic abilities in action.
A text based turn based RPG game which runs in the terminal. Commands like attack or defend must be typed manually and as they are displayed in the GUI to avoid type errors. So far there are 4 classes(one of the classes is not functional at the moment) with the ability to create a custom class. When creating a custom class the player gets 26 skill points to distribute across the different skills.
Skills include: Strength, Defense, Evasion, Critical Hit Damage, Agility, Spirit, Mana, Luck. The flow of the game is largely determined by these skills with some RNG mixed in.
Spells and Abilities are assigned to the player at the start of the game depending on the stats selected. Magic focused characters are assigned magic abilities while, damage/agility focused characters are assigned normal abilities. For magic assignment, the change of obtaining any particular skill is determined by the value of [(0.0-0.9)*Player spirit stat)] + a base obtain value. Ability assignment works in the same way but used the players ability stat to determine obtain chance.
Evasion skill determines the chance the player will dodge an enemy attack. Both the player and enemy have this skill.
An enemy is generated in the beginning game with the players stats in mind. This is done to ensure fairness.
To determine the value of the enemy attack value, I created a formula to dynamically assign a value based on the disparity between the player and enemy health stat. The equation is as follows...
A = \sqrt{100-[(\frac{P}{M}})\cdot 100]
or...
C = (Player_Health/Monster_Health) * 100
B = 100 - C
A = sqrt(B)
There is no party system in this game, which limits strategy. The enemy turn functions through an AI which is still a work in progress. I say AI, but no neural network is used, instead, the enemy learns which actions will yield positive results based on the player follow up action. The probability of an action being repeated is increased or decreased based on how detrimental/beneficial that follow up is.
No AI was used to create this. Again, I am a very amateur programmer and understand that there lots of things i can do to improve this, like utilizing object oriented programming, or less dependence on global variables, .json files, naming consistency like: statsPlayer, Player_Stats, stats. Please give suggestions of ideas for what I should add. I am actively learning while making this project and implemented a lot of these things would require to me to rewrite everything. I would rather finish what I have and create a new and improved version with these fixes.
Please give your feedback and ideas for what I should add. Currently I am in the process of completed the Magic buff and Ability buff system as not all buffs currently work, finishing the ITEM system, finishing enemy AI(as of now, all the enemy can do is use light attacks and dodge), adding a dungeon mode alongside current single mode, and adding a shop to buy items after obtaining gold in dungeon mode.
Dungeon mode would allow you to collect XP and level up as you defeat enemies, forcing you to fight stronger enemies as you grow stronger, until you reach a dungeon boss which uses unorthodox mechanics which the player will have to figure out to win. The player will be rewarded gold after each victory which can then be used at the shop.
Some additional notes: When creating your own class, naming your character "DEBUG" will enter you into debug mode, which allows you to change the LUCK stat to artificially increase RNG values. Otherwise, the LUCK stat is assigned a value randomly. When on battle menu, typing help will give a brief overview of the GUI and how to navigate it. When on the abilities screen, typing the ability name followed by the "--d" or "--description" tag will show the description of selected ability.
as of now only the "--d" tag is available, but I want to program in different tags for debug and quality of life purposes. Any ideas on what kinds of tags I should include?
r/PythonLearning • u/hawkingbirds19 • 3h ago
Online classes for US teen?
My 13 year old wants to learn python next. Are there any online classes you all recommend?
r/PythonLearning • u/mayar3141 • 7h ago
Teammates in learning
Hey, I'm learning python for like a month. Just wondering if anyone could join me to make some projects together not super completed things.
r/PythonLearning • u/SrPotato123 • 8h ago
Coding my first "big project" in Python
Hello everyone,
These months I have been coding a bigger program than the last one. Inside I put real options of what you can enter and I have used all that I have learned from the tutorial. Now that I have "finished" for now, I will continue upgrading it.
The program is based on a menu that allows you to access different options. Once the program starts, it greets you and asks which option you want to choose. There are a total of 3 options (only 2 work, it's all explained in the README file on GitHub), the statistics option asks you questions of how your imaginary match being a goalkeeper has been going, the videogame one plays a game where you have to guess a number between 1 and 100, giving you clues to find it and the exit option stops the program.
Here I will put the URL with all the project, any constructive criticism is welcome and appreciated.
URL: https://github.com/danigabarror2011-cpu/proyecto-python
Note: All the text of the program is in my native language, Spanish.
r/PythonLearning • u/Arnav_Saket • 9h ago
Showcase I am 15 and this is my game
Title: I built a survival game in Pygame where your own movement history hunts you down (Cursor Chase)
Hey everyone!
As a 15-year-old developer, I wanted to share a project I’ve been working on called Cursor Chase. It's a fast-paced survival game built entirely with Python and Pygame where your own past actions become your biggest enemy.
🎮 The Concept
The core mechanic is simple: every movement you make is recorded.
A delayed cursor clone follows the exact path you took moments before. As time passes, the delay shrinks, forcing you to move smarter, trap yourself less, and constantly outrun your own ghost. If you touch the clone, run into an "irritation zone" hazard, or clip a wall, it’s game over.
🛠️ Key Features
* Async Self-Multiplayer: You are essentially racing against your own historical movements.
* Progressive Difficulty: The chaser's delay decreases over time, turning the endgame into a high-intensity survival sprint.
* Procedural Elements: Dynamic maze walls and hazard spawning keep every run unique.
* Score Loop: Combines your survival time with coin collection bonuses.
🚀 Check It Out
The project is open-source, so feel free to check out the code, run it locally, or contribute!
* GitHub Repository: https://github.com/coding-arnav66/Cursor-Chase
Quick Setup:
```bash
git clone https://github.com/coding-arnav66/Cursor-Chase.git
pip install pygame
python cursor_chase.py
r/PythonLearning • u/New_Pay3669 • 1d ago
I built my first MCP server on Claude! Now AI agents can create and deploy websites 🤖
claude.aiI've been experimenting with MCP and AI agents, and I finally got my first project working!
I built AgenTack, an MCP server that allows AI agents like Claude to do something beyond generating code: actually create a website, upload its files, and publish it online.
Here's the interesting part:
Instead of asking an AI to generate HTML and then manually figuring out hosting and deployment, you can give your AI agent the tools to do the whole process.
What I've got working so far:
- Create websites through an AI agent
- Upload and manage website files
- Deploy and publish websites
- Manage multiple websites through MCP
I've tested the integration with Claude, and seeing an AI agent actually publish a website was a pretty exciting first milestone. 😂
But I'm curious about something:
Are we moving toward a world where developers won't need to touch hosting and deployment at all, because their AI agents will handle it?
Or is MCP still more hype than practical value?
I'd genuinely love to hear what other developers think. Especially if you've built something with MCP.
You can find it on Claude: Agentack
This is my first MCP project, so feedback (including criticism) is very welcome!
r/PythonLearning • u/jiminaa67 • 1d ago
Help Request I only have a android phone how should I learn python im 13 can someone help me to learn it or just teach me?
r/PythonLearning • u/EntrepreneurTime7302 • 1d ago
Beginner Qs - easy project?
what’s the easiest (but impressive sounding) Python project? I
am gonna be honest I need to larp, I want to mention a simple but honest project that I coded in my personal statement for uni (applying for maths and CS) where I want to sort of prove I’ve independently taken up Python learning
help me larp comp geniuses
r/PythonLearning • u/ETL_Pipeline_Dev • 1d ago
Discussion Where do you use None in python
So far I've only really used None in two places:
- With dict.get(), when the key isn't there.
- With del in classes. I set a variable to None so the object gets cleaned up.
Where else do you use it? Do you use it as a default value for function arguments, or for missing data?
I'm curious how people use it in real projects.
r/PythonLearning • u/Ok_Run_1301 • 1d ago
Complete beginner - Where should I actually start with Python?
Hi everyone, I'm a complete beginner with zero coding experience.
I want to learn Python to build small projects in the future.
I checked the FAQ and tried a few YouTube videos, but I feel overwhelmed because there are too many courses and I don't know which one to stick to.
For someone like me who knows nothing, what is the ONE course / book / path you recommend to start with and finish?
Thanks!
r/PythonLearning • u/Ok_Run_1301 • 1d ago
Complete beginner - Where should I actually start with Python?
​
Hi everyone, I'm a complete beginner with zero coding experience.
I want to learn Python to build small projects in the future.
I checked the FAQ and tried a few YouTube videos, but I feel overwhelmed because there are too many courses and I don't know which one to stick to.
For someone like me who knows nothing, what is the ONE course / book / path you recommend to start with and finish?
Thanks!
r/PythonLearning • u/david_vael • 1d ago
Help Request Python Under the Hood by David Vael
Hey everyone,
Everyone writes x = 10. Few look at the PyLongObject in memory. Don't just play the standard deck-be the Joker of Poker. 🃏🐍
r/PythonLearning • u/Bulky_Ad_2335 • 2d ago
Help me collect handwritten digits for a Deep Learning project!
Hey everyone!
I'm currently working on a Deep Learning project, and I need your help with something simple: collecting handwritten digits!
I built a small web app where anyone can write digits (0–9) using their mouse, trackpad, or touchscreen and submit them to contribute to my dataset.
The goal is to collect handwritten samples from different people, with different handwriting styles, so I can train and experiment with a digit recognition model.
How to participate:
- Open the website: https://malak-meliani.github.io/digits-by-hand/
- Write a few digits (0–9).
- Submit your samples!
It only takes a minute or two, and every contribution helps, even if you only submit a handful of digits.
I'd really appreciate it if you could give it a try! And if you have any feedback or suggestions about the website, I'd be happy to hear them.
Thank you so much to everyone who takes the time to contribute! ❤️
r/PythonLearning • u/Sea-Ad7805 • 2d ago
Learning Python Feels Easy. Until It Isn’t.
Explore many more ArjanCodes videos.
r/PythonLearning • u/timepassr • 2d ago
Help Request Help needed for schools python learning
so a little of context i have computer science as a subject in grade 12 , and in it i have to study python , sql , stack and python connectivity with sql . i have managed to study sql but im struggling with python all i know is print("hello world") , i dont know if this is the right place to post this but help will be really appreciated . also i cant give it much time sadly coz i have subjects like physics chem and maths hanging in my neck . max i can give is 45 mins a day and i have to do it in under a month .
these are all the topics i need to learn
- Basics: Tokens, keywords, identifiers, literals, variables, data types, operators, and type conversion.
- Control Flow: Conditional statements (
if,elif,else) and loops (for,while,break,continue). - Strings: Indexing, slicing, traversal, and built-in string methods.
- Lists, Tuples, and Dictionaries: Creation, indexing, slicing, mutability vs. immutability, traversal, and built-in functions/methods.
- Standard Modules: Importing and using
math,random, andstatistics.
- Functions
- Types of Functions: Built-in functions, functions defined in modules, and user-defined functions (
def). - Parameters & Arguments: Positional arguments, default parameters, and keyword (named) arguments.
- Return Values: Returning single or multiple values (
returnstatement) vs. void functions. - Scope of Variables: Global scope vs. local scope and the
globalkeyword.
- Exception Handling
- Error Types: Syntax errors, runtime errors (exceptions), and logical errors.
- Built-in Exceptions:
ZeroDivisionError,TypeError,ValueError,IndexError,KeyError,FileNotFoundError,IOError, etc. - Handling Blocks:
try,except,else, andfinallyclauses, along withraiseandassertstatements.
- File Handling
- File Types: Text files (
.txt), binary files (.dat), and CSV files (.csv). - General File Operations:
open(),close(),withstatement, and file access modes (r,r+,w,w+,a,a+,rb,wb,ab, etc.). - Text Files: Reading (
read(),readline(),readlines()), writing (write(),writelines()), and file pointer manipulation (seek(),tell()). - Binary Files: Serialization/deserialization using the
picklemodule (pickle.dump()andpickle.load()). - CSV Files: Reading and writing tabular data using the
csvmodule (csv.reader(),csv.writer(),writerow(),writerows()).
- Data Structures (Stack)
- Stack Concepts: Linear data structure and LIFO (Last-In, First-Out) principle.
- Stack Operations: Implementation using Python lists (
pushviaappend(),popviapop(),peek/display, and underflow/overflow checks).
- Python–Database Connectivity
- MySQL Interface: Connecting Python to a MySQL database using
mysql.connector. - Query Execution:
connect(),cursor(),execute(), parameterized queries (%sor.format()),commit(),fetchone(),fetchmany(),fetchall(), androwcount.
THANKS A LOT FOR READING
r/PythonLearning • u/MidnightMappingMunch • 2d ago
Help Request Collections cheatsheet
Hi guys! Can you share your favorite cheatsheets for collections module? I'm trying to find one with asymptotics, but everything that I can find either doesn't contain them, or has limited set of functions and methods
r/PythonLearning • u/Over_Grass3055 • 2d ago
Python Friendgroup/Server
i'm a 20 year old CS student learning python, I feel like theres many other people like me so I felt like making a community where everyone helps each other would prosper us. My discord is filiph20 if u feel like joining just add me :)
r/PythonLearning • u/Sea-Ad7805 • 2d ago
Neural Network built from scratch with NumPy
This 👉interactive 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐡 demo visualizes 1,000 training steps of a neural network learning to solve the XOR problem. Watch how the weights evolve as the network learns.
Use the "Step Into" button to explore the implementation in neural_net.py and see the details of the forward and back-propagation. Follow the mathematics behind the implementation in 📑this PDF.
No PyTorch or TensorFlow — just Python, NumPy and mathematics.
Explore 👉other 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐡 visualizations.
r/PythonLearning • u/Austinwhitely • 2d ago
Help Request Need Help With My Selenium Spotify Playlist Scraper
Hello, I am attempting to make a spotify playlist scraper. The html reading and everything else is working correctly but the automatic scrolling is not fully working yet and I am stuck. For some reason when i get to about the 100 song mark, Spotify refuses to load any more songs for me. I have tried waiting it out, scrolling a bit more to hopefully trigger it to load, and adding some fake clicks to try to trigger spotify to load. I dont know why it is doing this because when I manually use page down to scroll on a seperate browser it works perfectly. Here is a video of what is happening, and I have linked my github repo for you guys to take a look at it because I cannot post both a video and an image.
r/PythonLearning • u/False_Technician3903 • 2d ago
Help Request Taking the Certiport Python ITS exam in a few days
Hey everyone, I’m a high school student taking the Certiport ITS Python exam in a couple of days, and I need a 700 to pass.
I already have little Python knowledge, so I’m mostly looking for resources tailored to the actual exam format and tricky questions. Are there any specific YouTube video, or practice tests that helped you pass? Any last-minute tips on what topics they test heaviest would be super appreciated!
r/PythonLearning • u/Capital_Quality_6110 • 3d ago
I'm 16 and researching my future career in freelance software development. What should I know?
Developers and freelancers, I'd like to hear your thoughts on a business model I'm considering for my future career.
A little context about me:
I'm 16 years old, from Algeria, and I've been learning programming and software development for about a year. I'm still a student, currently building my foundations in programming, working on personal projects, and exploring different areas of software engineering.
My long-term goal is to become a software engineer, develop strong technical skills, and eventually work with international clients remotely.
Recently, I've been considering an alternative to the traditional remote full-time employment model: building a freelance business based on recurring contracts.
The idea would be to combine two types of services:
1. Long-term development contracts
Working with companies on ongoing software development projects, under long-term agreements with recurring monthly payments.
2. Monthly software maintenance contracts
Providing continuous maintenance, bug fixes, updates, improvements, and technical support for clients' existing software in exchange for a fixed monthly fee.
Rather than depending entirely on short-term projects, I'd like to build a stable portfolio of long-term clients and recurring contracts.
I'm not planning to jump into this immediately. I'm researching different career paths early so I can make informed decisions and prepare myself properly.
I'd really appreciate feedback from developers and freelancers with real-world experience:
- Is this business model sustainable in the long run?
- How difficult is it to find and retain long-term clients?
- Are monthly maintenance contracts actually profitable?
- How do you manage several clients and their different expectations?
- What are the biggest risks and disadvantages?
- Would you recommend this model over traditional remote employment?
I'm especially interested in hearing from people who have actually built a freelance business around recurring contracts.
A little more about my current work:
I'm also working on personal programming projects to improve my skills. If you're interested in seeing what I'm currently building, here's my GitHub:
GitHub: https://github.com/AnisBerkani/todo-list-cli.git
I'd also be happy to receive constructive feedback on my projects.
Any advice, personal experiences, or things you wish you had known earlier would be greatly appreciated!