r/PythonLearning • • 1h 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?

6 Upvotes

r/PythonLearning • • 5h 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 • • 10h ago

Discussion Where do you use None in python

11 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 • • 11m 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 • • 2h ago

You've got a year.. then what?

0 Upvotes

Im looking to start a business after a year. What would you do?


r/PythonLearning • • 18h 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

Learning Python Feels Easy. Until It Isn’t.

Thumbnail
youtu.be
24 Upvotes

Explore many more ArjanCodes videos.


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 • • 18h 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 • • 18h 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

I've quit my self paced Python course twice at the same section

26 Upvotes

I’m learning Python for work. I’ve quit twice at the same spot- the exercises where you write your own functions and loop through dictionaries. The lessons make sense, then the exercise is a blank editor and I just sit there. Nobody at work codes, so I can’t ask anyone.

I’m not attached to this course either, I’d totally switch if something else explains functions better. Does jumping back in at the hard part make more sense than restarting a third time?


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

Python Friendgroup/Server

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

Help Request How can I improve?

Post image
1 Upvotes

r/PythonLearning • • 1d ago

Neural Network built from scratch with NumPy

Post image
7 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 • • 1d 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 • • 1d 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 • • 1d 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

Showcase My first "authenticator"

Thumbnail
gallery
42 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 • • 2d 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


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

30 Python concept based Interview Questions - Free PDF Doc

Thumbnail
github.com
10 Upvotes

Hi All,

I have consolidated my 30 python interview Q&A series into one PDF Doc and added in my github python repo.

File link : https://github.com/grasspacad07/grassp_python/blob/main/Python_Interview_Guide_30_Questions.pdf

This covers most of the topics asked in beginner to intermediate python interviews. You could expect similar question patterns generally. Keep it handy for quick revision.

Thank you! Happy learning and coding :) All the best !


r/PythonLearning • • 2d ago

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

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

Help Request why do i get typeerror 'nonetype' object is not subscriptable

2 Upvotes

i'm doing a small practice exercise where i read a csv of my course scores with the csv module and work out the average for each subject. the numbers came from the printout our teacher pins outside the classroom each term, which i typed into a spreadsheet at home so i'd stop adding them up by hand.

import csv
def average(nums):
    total = 0
    for n in nums:
        total = total + n
    avg = total / len(nums)
    stats = {"avg": avg, "count": len(nums)}

with open("scores.csv") as f:
    reader = csv.reader(f)
    for row in reader:
        subject = row[0]
        scores = [int(x) for x in row[1:]]
        result = average(scores)
        print(subject, result["avg"])

Traceback (most recent call last): File "test.py", line 15, in <module> print(subject, result["avg"]) TypeError: 'NoneType' object is not subscriptable

i printed the intermediate variables and the score list and the running total both look fine, ran the function by itself in a separate file, and read the docs page on defining functions. none of that showed me what was wrong.

am i right that i just left out a return inside the function, or is something else in there broken too? thanks