r/PythonLearning • u/Sea-Ad7805 • 2h ago
Learning Python Feels Easy. Until It Isn’t.
Explore many more ArjanCodes videos.
r/PythonLearning • u/Sea-Ad7805 • 2h ago
Explore many more ArjanCodes videos.
r/PythonLearning • u/Substantial-Air-2483 • 12h ago
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 • u/Over_Grass3055 • 8h ago
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 • 8h ago
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/MidnightMappingMunch • 4h ago
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/timepassr • 4h ago
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
if, elif, else) and loops (for, while, break, continue).math, random, and statistics.def).return statement) vs. void functions.global keyword.ZeroDivisionError, TypeError, ValueError, IndexError, KeyError, FileNotFoundError, IOError, etc.try, except, else, and finally clauses, along with raise and assert statements..txt), binary files (.dat), and CSV files (.csv).open(), close(), with statement, and file access modes (r, r+, w, w+, a, a+, rb, wb, ab, etc.).read(), readline(), readlines()), writing (write(), writelines()), and file pointer manipulation (seek(), tell()).pickle module (pickle.dump() and pickle.load()).csv module (csv.reader(), csv.writer(), writerow(), writerows()).push via append(), pop via pop(), peek/display, and underflow/overflow checks).mysql.connector.connect(), cursor(), execute(), parameterized queries (%s or .format()), commit(), fetchone(), fetchmany(), fetchall(), and rowcount.THANKS A LOT FOR READING
r/PythonLearning • u/Austinwhitely • 11h ago
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 • 15h ago
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/Crist241111 • 1d ago
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 • u/jazzz2323 • 1d ago
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 • u/Capital_Quality_6110 • 23h ago
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:
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 • u/New_Pay3669 • 1d ago
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:
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:
Thanks for reading. Any feedback helps me learn.
r/PythonLearning • u/grassp_dataAI • 1d ago
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 • u/BoldDream80071 • 1d ago
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
r/PythonLearning • u/F11fii • 1d ago
Recently made another project again, this time I'll actually use cause I keep forgetting to do my work on time. But basically, it's like Google Calendar and will help automatically remind you of what work is due. It also stores data via JSON files or SQLite, depending on which script you run; more details in the README.
https://github.com/F11Fii/Task-Scheduler
Looking for suggestions on how to improve it as well :3
r/PythonLearning • u/Classic_Mortgage_889 • 2d ago
r/PythonLearning • u/dsar16 • 1d ago
I'm new in python I don't know where to start and what to learn I have listened that only 20% of python is necessary my goal is AI & ML.
r/PythonLearning • u/UsedAd4766 • 1d ago
Hi everyone,
I've been building Pyzzel, an open source ORM for PostgreSQL. I wanted something with SQLAlchemy's familiar feel, but simpler and closer to raw psycopg speed.
What it does
Example
python
users = User.select(User.name, User.age).where(User.id == 1)
user = User.get(1)
with Base.transaction():
user.age = 30
user.save()Why PostgreSQL only? Focus. Supporting one database well beats supporting five badly.
Status: Early stage, with 250+ tests passing against a real PostgreSQL. Feedback, issues and criticism are very welcome, especially on the API design.
GitHub: https://github.com/himanshubokde21/Pyzzel
PyPI: https://pypi.org/project/Pyzzel/
Happy to answer any questions!
r/PythonLearning • u/Hidayat8811 • 2d ago
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 • u/Alert-Classic7591 • 1d ago
Hey everyone!
We’re working on a different approach to learning Python, where the course adapts to what you already know, your learning pace, and the topics you struggle with, instead of making everyone follow the same fixed curriculum.
We’re looking for 20 people who are currently learning Python or want to get started.
The course includes:
Participation is completely free, with no payment or purchase required. This is an beginner friendly course.
We’ve developed this course through LearnStride and are genuinely interested in understanding whether this approach makes learning Python easier and more effective.
All we ask in return is honest feedback about your learning experience - what works, what doesn’t, and what could be improved.
If you’re interested, please leave a comment or DM me your email address so we can send you an invitation to access the course.
Thanks!
Posted with moderator permission.
r/PythonLearning • u/Sea-Ad7805 • 3d ago
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 • u/Handsome_sweettouu • 2d ago
Interesting python problem
r/PythonLearning • u/Hegazich • 3d ago
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 • u/IllustratorUnfair330 • 2d ago
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)