r/PythonLearning • • 3h ago

Teammates in learning

2 Upvotes

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 • • 3h ago

My self made game as a 15yro

1 Upvotes

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 • • 3h ago

Coding my first "big project" in Python

2 Upvotes

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 • • 4h ago

Showcase I am 15 and this is my game

0 Upvotes

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 • • 20h ago

I built my first MCP server on Claude! Now AI agents can create and deploy websites ๐Ÿค–

Thumbnail claude.ai
1 Upvotes

I'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 • • 21h 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?

11 Upvotes

r/PythonLearning • • 1d ago

Beginner Qs - easy project?

8 Upvotes

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 • • 1d ago

Discussion Where do you use None in python

14 Upvotes

So far I've only really used None in two places:

  1. With dict.get(), when the key isn't there.
  2. 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 • • 1d ago

Complete beginner - Where should I actually start with Python?

9 Upvotes

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 • • 1d ago

Complete beginner - Where should I actually start with Python?

0 Upvotes

​

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 • • 1d ago

Help Request Python Under the Hood by David Vael

1 Upvotes

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. ๐Ÿƒ๐Ÿ

Python Under the Hood by David Vael


r/PythonLearning • • 1d ago

Help Request How can I improve?

Post image
1 Upvotes

r/PythonLearning • • 1d ago

Help me collect handwritten digits for a Deep Learning project!

5 Upvotes

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:

  1. Open the website: https://malak-meliani.github.io/digits-by-hand/
  2. Write a few digits (0โ€“9).
  3. 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 • • 2d ago

Learning Python Feels Easy. Until It Isnโ€™t.

Thumbnail
youtu.be
26 Upvotes

Explore many more ArjanCodes videos.


r/PythonLearning • • 2d ago

Help Request Help needed for schools python learning

2 Upvotes

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, and statistics.
  1. 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 (return statement) vs. void functions.
  • Scope of Variables: Global scope vs. local scope and the global keyword.
  1. 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, and finally clauses, along with raise and assert statements.
  1. File Handling
  • File Types: Text files (.txt), binary files (.dat), and CSV files (.csv).
  • General File Operations: open(), close(), with statement, 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 pickle module (pickle.dump() and pickle.load()).
  • CSV Files: Reading and writing tabular data using the csv module (csv.reader(), csv.writer(), writerow(), writerows()).
  1. Data Structures (Stack)
  • Stack Concepts: Linear data structure and LIFO (Last-In, First-Out) principle.
  • Stack Operations: Implementation using Python lists (push via append(), pop via pop(), peek/display, and underflow/overflow checks).
  1. Pythonโ€“Database Connectivity
  • MySQL Interface: Connecting Python to a MySQL database using mysql.connector.
  • Query Execution: connect(), cursor(), execute(), parameterized queries (%s or .format()), commit(), fetchone(), fetchmany(), fetchall(), and rowcount.

THANKS A LOT FOR READING


r/PythonLearning • • 2d ago

Help Request Collections cheatsheet

5 Upvotes

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 • • 2d ago

Python Friendgroup/Server

10 Upvotes

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 • • 2d ago

Neural Network built from scratch with NumPy

Post image
8 Upvotes

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 • • 2d ago

Help Request Need Help With My Selenium Spotify Playlist Scraper

4 Upvotes

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.

HERE


r/PythonLearning • • 2d ago

Help Request Taking the Certiport Python ITS exam in a few days

5 Upvotes

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 • • 2d ago

I'm 16 and researching my future career in freelance software development. What should I know?

0 Upvotes

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!


r/PythonLearning • • 3d ago

First time building something like this: a web host for AI agents. Not sure what I'm doing, would love feedback

Post image
2 Upvotes

Hey everyone,
I'm a backend/data engineer, and lately I've been learning about AI agents and MCP. I kept asking Claude for small websites, and the annoying part was always the end: copying the files somewhere to put them online. So I tried to build a fix and called it AgenTack.

The idea is simple: your agent sends the site's files to an API, or calls an MCP tool, and gets back a live link. That's it.
What I've built so far, while learning as I go:

  • A small server where an agent can publish, update or delete a static site
  • An MCP server, so Claude Desktop, Claude Code and other MCP clients can use it
  • An experiment with three agents: one plans the site, one builds it and one reviews it. This part taught me the most, and I'm still not sure I designed it well.
  • Uploaded pages are sandboxed on a separate origin, because I was worried about people hosting bad stuff. I'm honestly not sure I got everything right here.

It's all open source (Python, SQLite, Docker). The host and GitHub repo are in the image.

I don't really know yet if this is useful or just a fun learning project, so I'd really like honest opinions:

  • Would you use something like this, or is Netlify/GitHub Pages already enough?
  • Anything in the code or architecture you'd do differently?
  • If you find a way to break the sandbox, please tell me ๐Ÿ™

Thanks for reading. Any feedback helps me learn.


r/PythonLearning • • 3d ago

Showcase My first "authenticator"

Thumbnail
gallery
50 Upvotes

Two months ago I started learning python, but not regularly, and today I made my first mini "authenticator", just because I wanted to understand how JSON works.
I used AI to debug some things, because I started with an authenticator without json saves, then I found out about JSON(and combining them was difficult), but most of it was typed by me. Take a look at my code and share your thoughts on how I used JSON and conditionals.

P.S. I know somethings are pretty basic or not the most secure, but as I said, it's just to understand how JSON and conditionals work in this kind of program.


r/PythonLearning • • 3d ago

Can't lock in

11 Upvotes

I am a 22 year old currently learning python but after learning the basics and trying to build small projects I will forget the basics. Like I get confused, where to apply certain functions...etc. is there any way I can fix that .

Also i can't lock in i eventually get stuck in this instgram or reddit loop for hours

Can you guys give me some advice