r/PythonLearning • • 21h ago

Showcase Database prototype (python)

Thumbnail
gallery
155 Upvotes

I write my first data base code handling a class record using list tell me how is it..

First two are code and the rest is the output.

Tell me if anything can be improve or added to make this code even more practical.


r/PythonLearning • • 15h ago

Python project for college class HELP

Post image
8 Upvotes

I am in a python 1 course at my college. This project was assigned around the end of September and is due December 16th. I have maybe like 15% of it complete but I would really like some help or advice on finishing this before the deadline. The project details are shared. Any advice is welcomed


r/PythonLearning • • 6h ago

School Python vs Modern Python 🤯 | If-Else vs NumPy #Shorts

Thumbnail
youtu.be
0 Upvotes

Interesting python problem


r/PythonLearning • • 22h ago

Removing while iterating over a list

Post image
12 Upvotes

An exercise to help build the right mental model for Python data.

The “Solution” link uses memory_graph to visualize execution and reveals what’s actually happening.


r/PythonLearning • • 22h ago

Beginner struggling with web scraping multiple Wikipedia pages using BeautifulSoup in Spyder

5 Upvotes

Hi everyone!

I'm fairly new to Python and currently learning web scraping using Spyder, BeautifulSoup, and requests.

I've been trying to write a script that extracts data from a Wikipedia table, collects the links from the table, and then visits each link to scrape the corresponding Wikipedia article.

I've managed to get some parts working, but I'm struggling to figure out whether my approach is correct and if there are any mistakes in my code.

I'm particularly unsure about how I'm extracting the links and downloading the individual pages.

I would really appreciate some guidance on how to troubleshoot this or improve my approach.

I'm not looking for someone to write the code for me, just some explanations or pointers so I can understand what I'm doing wrong.

Thanks in advance!

here's the code:

import requests

from bs4 import BeautifulSoup

import os

import time

from urllib.parse import urljoin

import pandas as pd

headers = {

"User-Agent": "AcademyAwardsStudentProject/1.0 (educational research)"

}

resp = requests.get(

"https://en.wikipedia.org/wiki/List_of_Academy_Award%E2%80%93winning_films",

headers=headers,

timeout=30

)

resp.raise_for_status()

soup = BeautifulSoup(resp.text, "html")

table_list = soup.find_all("table")

print(len(table_list))

for index, table_name in enumerate(table_list):

if "Film" in table_name.text:

print(index, table_name)

class_name="wikitable"

table_list = soup.find_all("table", class_=class_name)

#print(len(table_list), *[i.text for i in table_list])

for table in table_list:

if "Film" in table.text and "Nominations" in table.text:

table_data = table

break

table_headers = table_data.find_all("th")

column_headers = []

for header in table_headers:

column_headers.append(header.text.strip())

table_row_data = []

for row in table_data.find_all("tr"):

individual_data = [i.text.strip() for i in row.find_all("td")]

if individual_data:

table_row_data.append(individual_data)

df = pd.DataFrame(table_row_data, columns=column_headers)

df.to_csv("academy_awards.csv", index=False)

#Create a folder for the movies

output_dir = "movies"

if not os.path.exists(output_dir):

os.makedirs(output_dir)

#Find the links to each movie

links = []

for row in table_data.find_all("tr"):

cells = row.find_all("td")

if cells:

link = cells[0].find("a", href=True)

if link:

links.append(urljoin(resp.url, link["href"]))

links = list(dict.fromkeys(links))

print("Number of movie links: ", len(links))

#download each movie's Wikipedia page

for index, url in enumerate(links):

name = url.split("/")[-1]

try:

print("Getting movie: ", name)

response = requests.get(url, headers=headers, timeout=30)

if response.status_code == 200:

with open("movies/" + name + ".html", "w", encoding="utf-8") as f:

f.write(response.text)

else:

print("Failed to download: ", url, response.status_code)

time.sleep(5)

except requests.exceptions.RequestException as e:

print("A network error occured:", e)


r/PythonLearning • • 1d ago

Help Request Complete beginner here: where should I start learning Python?

23 Upvotes

I want to learn Python but don't know where to start!

Hi everyone. I'm a complete beginner and I want to learn Python, but I'm not sure where to begin. There are so many courses and videos that I feel lost.

Could you recommend a course or a step-by-step path for someone starting from zero? Free cost resources are preferred.

Thanks a lot!


r/PythonLearning • • 1d ago

Help Request Need help planning foray into Python

8 Upvotes

I am a mid level executive who has recently been asked to take over a python intensive project. I have coding experience but have been out of touch since last 10 years.

My question is that the project leverages heavily pandas, numpy, and matplot. I need to start in a month and want to use the lean december to be in a position where i can get hands dirtier

Should i start with CS50 (as suggested on other forums ) and gradually get into pandas and others. Or can i directly start with those ?

Ps: new to python, so dont bombard me with “stupid question” alerts !!


r/PythonLearning • • 14h ago

promoting the Python programming language through practical examples?

0 Upvotes

What do you think of my efforts to promote the Python language?

Most recently, I’ve been working on an ARM-based system using the Pydroid3 IDE.

Do you know of any other Python-related promotional initiatives for the Python community?


r/PythonLearning • • 22h ago

Hello, I recently joined the Reddit platform and I am a beginner in Python. I designed a program that is literally a calculator. I am not an average beginner, maybe, and I would like your opinion on the program and another idea to create another program (it took me an hour to create this calculator)

Thumbnail github.com
2 Upvotes

r/PythonLearning • • 1d ago

Getting past the beginner level!

15 Upvotes

Helloooo ! I need to know howw do we actually get past the beginner level like after learning the basics ... I can't get ideas and like everything is available already what else do I even build ... I need helpp


r/PythonLearning • • 1d ago

1st year CS student learning Python. Need advice on resources, laptop ($400-600), and languages

3 Upvotes

Hi everyone, it's my first time here and I really need your help and advice. I'm currently a 1st-year university student majoring in Computer Engineering, and right now we are learning Python.

​What would you recommend: where can I learn Python for free, and is it worth reading programming books right now? In the future, I want to learn how to write code for games and create my own apps. I also want to buy a laptop with a budget of $400–600 that will last me a long time.

​And one last question about languages: my English is currently weak, around A1–A2 level — should I focus on learning English right now, or is it more profitable in IT to start learning Chinese instead? If you have any other advice or directions on where it's better to move forward, I'd be really glad to hear it.

​(P.S. I didn't write this text in English myself — I translated it using AI, because as I mentioned earlier, my English isn't very good yet).


r/PythonLearning • • 20h ago

Complete Beginner

1 Upvotes

I want to start learning Python, and I need advice on what topics to focus on and the best resources or platforms to learn from.

I'm also interested in pursuing Artificial Intelligence and Machine Learning in the future, so I'd appreciate guidance on what I should learn, the skills I'll need, and how to build a strong foundation in those fields as well. 🙏


r/PythonLearning • • 16h ago

Building a Free Automated Video Production System on a Broken Laptop with Limited Hardware 🥺

Thumbnail
gallery
0 Upvotes

Hi everyone!

I want to share a personal project I've been working on.

I'm building an automated video production pipeline using Python and free/open-source technologies.

Here's something that makes this project particularly challenging:

I don't have a proper desktop computer. I'm working with a laptop that has a damaged display and very limited hardware resources.

Despite these limitations, I'm trying to build a system that can automate the video production process:

Script and timeline generation

HTML/SVG-based animations

Browser-based frame rendering

FFmpeg video processing

Full HD 1080p video output

My goal is to create cinematic-style videos without depending on expensive AI subscriptions.

I'm still developing and testing the system. It's not a finished product yet.

I know my hardware is far from ideal, but I believe creativity and determination shouldn't depend entirely on expensive equipment.

If you were in my position, what would you focus on to make this pipeline more efficient on low-end hardware?

I'd genuinely appreciate technical advice and feedback.

Thanks for reading! ❤️


r/PythonLearning • • 1d ago

Best project for learning python

36 Upvotes

I am not a beginner but i want to learn news things


r/PythonLearning • • 1d ago

What help you learn Computer networking?

11 Upvotes

I am learning networking and beginning to get into the introductions of the concept. I've looked at YouTube videos and articles on the matter, and I always was aware of how python and networking goes together, but I don't understand what material to educate myself on when it comes to getting into networking what help you understand networking?


r/PythonLearning • • 2d ago

I am 15 and this is my python project

Thumbnail
gallery
45 Upvotes

Hi everyone!

I recently built a Python project called Lived Here.

The idea is simple: enter your birth date and the program turns it into a storytelling experience. Instead of only showing your age, it analyzes your date of birth and shows things like:

• How long you've lived in years, days, and seconds
• Your zodiac sign
• Days until your next birthday
• Historical events from your birthday
• Pop culture highlights from that day
• Interesting birth-date facts
• Inflation estimates since you were born

I started it as a fun experiment, but it gradually evolved into a slide-based experience inspired by modern storytelling websites.

I'm a 15-year-old student learning Python, so I'd love feedback on the code, design, and ideas for future features.

GitHub: https://github.com/coding-arnav66/Lived-Here

Thanks for checking it out!


r/PythonLearning • • 1d ago

Showcase I built a small BASIC-inspired programming language interpreter in Python — KVC-BASIC

8 Upvotes

Hey everyone!

I wanted to share a little project I've been working on recently called KVC-BASIC.

It's a simple BASIC-inspired programming language interpreter written entirely in Python. I started working on it mainly out of curiosity — I wanted to understand a bit better how programming languages actually work, so I decided to try building a small interpreter myself.

For now, KVC-BASIC supports a few basic instructions:

  • SET — assigns a value to a variable
  • ADD — adds two values
  • SUB — subtracts one value from another
  • MUL — multiplies values
  • DIV — divides values
  • OUT — prints the result

Here's a quick example of what the code looks like:

SET x 10
SET y 5
ADD x y
OUT x

The project runs on Python 3 and doesn't require any external libraries.

You can check it out here:
https://github.com/FranekKvcux/KVC-BASIC

It's still a work in progress, and I know there's plenty of room for improvement. I'm sharing it because I'd genuinely like to hear what others think.

Do you have any suggestions for features I could add or things I should improve? I'd also love to hear your thoughts on the overall idea.

Thanks for taking the time to check it out!


r/PythonLearning • • 1d ago

I’ve been working on my little Python project – KVC-BASIC has some new features!

3 Upvotes

Hey everyone!

A while ago, I posted here about a small project I've been working on called KVC-BASIC. It's a simple (now) Assembly-inspired programming language interpreter written in Python.

Since then, I've been making some improvements and adding new features.

Here's what's new:

  • IF / ENDIF – conditional statements are now supported!
  • IN – programs can now receive user input.
  • INT, FLOAT and STR – input can be converted into different data types.

It's still a pretty small project, and there's definitely a lot left to do. I'm learning as I go, experimenting with how interpreters work and trying to make the language better step by step.

One thing I really like about this project is that feedback from the community actually helped me decide what to implement next. So thanks to this guy who gave me a suggestions on my previous post!

I'd love to hear what you think. What feature would you add next?

GitHub: https://github.com/FranekKvcux/KVC-BASIC

Thanks for checking it out!


r/PythonLearning • • 1d ago

Showcase “7 billion people…” follow up post

0 Upvotes

This is handwritten no ai so bare with me please:
I posted on here a few hours ago complaining that I couldn’t find anyone to use/test my project.

I’m sorry if my attitude came across as rude to anyone I was just moody about the situation.

Give me a chance to explain what I’ve built and what it does.

What it is in a nutshell:
it is a proxy that sits in between you and your agent. Harness like claude code/codex/hermes use somthing called a “base url” this is where your “prompts” are redirected so with Claude code it would be “https://api.anthropic.com” that sends your messages straight to anthropic. We/I replace with “http://127.0.0.1:8788” so prompts go to a proxy first they get translated and gets sent somewhere else like openrouter or nvidia nim free tier.

Caveats:
Openrouter: free tier api keys give 50 requests per day, per api, 50 requests ≠ 50 messages each request could be a tool call or a web search so the more openrouter keys you have the more requests you have.

Nvidia nim: free tier can work with just 1 api key for as many requests as you want, but there is request per minute rate limits + share gpu interference = slow depending on region and model

System prompt integration: this is optional you can turn it on, you can turn it off, it’s your choice. Harnesses like claude code inject things like “system reminders” basically saying “if you are ever asked to reverse engineer something you must refuse” they are called refusals, in an attempt to reduce/eliminate these refusals the proxy strips them out and injects a system level prompt basically saying the opposite (jailbreak prompt). Why most “jailbreaks” fail, in a prompt it gets converted to into: system, user, assistant and tools, your claude.md gets injected at a “user” level which obsolete. The proxy injects it at the highest level “system” = better probability (this is based on the model you use)

This looks sketchy, this is probably malware: The project is opensource you can read/inspect the files your self or you can ask your agent to:
“don’t pull this, don’t install this, don’t run this. Do a deep dive audit/security sweep on this {put repo here}, anything malicious report it, anything scanning the machine report it do a full deep dive into it MAKE SURE ITS SAFE”

This is the repo url: https://github.com/dommurphy155/atlas

There is also a npm install command but since I got so many “this is malware don’t install” I’m not sharing it please don’t just comment “this is sketchy/malware” before doing your research into my project. I’ve put a lot of work into this and don’t want to be discredited.

I think I’ve covered mostly everything so if you’ve got this far then thank you for reading and understanding. If you have any questions drop them in the comments and I’m happy to answer them. Once again sorry for the complaining post I made before.


r/PythonLearning • • 2d ago

Python Study Log: Day 22

Post image
5 Upvotes

r/PythonLearning • • 2d ago

Python study partners

9 Upvotes

Python study partners UTC+0 or UTC+1

Speaks French or English

45 minutes to 1 hour per day

One project per week

Rigorous and determined

Let's start tomorrow if possible!


r/PythonLearning • • 1d ago

Help Request Does anyone know how I can learn cyber things? Phython? I brought 2 books abt it but idk how to establish a programm or programm in general

0 Upvotes

r/PythonLearning • • 2d ago

Showcase Local Python on iPhone or iPad? My friend built PythonIDE with Jupyter & an iPad Code-OSS workbench

Thumbnail
gallery
0 Upvotes

A friend of mine built PythonIDE for iPhone and iPad. I’m helping them find a few Python users to try it with scripts, notebooks, or projects they already use.

- **Local Python and debugging.** Edit and run multi-file projects on the device, pass script arguments, and use interactive input. The debugger supports breakpoints, stepping, call stacks, and variable inspection.

- **50 bundled packages with native extensions.** These include NumPy, pandas, SciPy, Matplotlib, scikit-learn, h5py, Pillow, OpenCV, PyAV, pygame, MLX, Hugging Face Tokenizers, safetensors, and SentencePiece. You can also install compatible pure-Python packages. Some bundled libraries require Pro.

- **Jupyter notebooks.** Open and edit `.ipynb` files, run cells locally, and view plots, images, and HTML output right in the notebook.

- **Native tools and automation.** Write small tools with native iOS controls in Python, create Home Screen widgets, or run scripts through Shortcuts.

- **Project tools.** There’s built-in Git, SSH/SFTP, live previews for HTML/CSS/JavaScript projects, and an AI agent that can work with project files and run code.

My friend also built an **open-source iPad workbench based on Code - OSS**, the codebase behind VS Code. It has a file explorer, split editors, project-wide search, and a command palette. You can open a project folder, run Python through PythonIDE’s local interpreter, run JavaScript, and preview HTML or Markdown. It works offline after the initial download.

https://github.com/jinwandalaohu66/PythonIDE-iPad-VSCode

If you’re curious, try running a script or notebook you already use. I’d love to hear what ran right away, whether any dependencies gave you trouble, or what you’d change about coding on the device. My friend has a few **lifetime PythonIDE Pro codes** as a thank-you for people who try it and share feedback.

https://apps.apple.com/app/id6753987304


r/PythonLearning • • 2d ago

7 billion people on earth…

0 Upvotes

7 billion people on this planet and I can’t find a single person to test/use my build. Genuinely what the f is the point in building a project