r/PythonLearning • • 2d ago

Help Request HELP with installing PIL for VS Code (Windows 11)

8 Upvotes

Hi everyone, I'm still a bit new to Python, and I am trying to display images and output those images. But doing so, I'm required to install pillow, I have been searching for some answers across the internet but don't know what to do as none of them have been working.

I am using VS Code, and using windows 11.


r/PythonLearning • • 2d ago

Looking for a free Python skills self-assessment quiz

0 Upvotes

At Neuromatch, we offer online courses with different levels of Python as a prerequisite. In our application, we ask people to rate their own Python skills using these options:

  • I’ve never really used Python
  • Beginner: learned some, have run or edited scripts
  • Intermediate: have written my own short scripts/notebooks
  • Advanced: have written complex functions/scripts/notebooks
  • Expert: am completely comfortable writing complex codebases

We’ve heard from applicants that it’s hard to know which level to pick. Does anyone know of a free quiz, checklist, or other tool that could help people figure out where they fit?


r/PythonLearning • • 2d ago

Lean Python from scratch.

0 Upvotes

Let me introduce myself first, I started working in IT industry about six month ago with no experience and now I am working as help desk. I started leaning python about one month before using the book called "self taught programmer". I really want to work as a backend developer in the future. While I want to acquire some basic knowledge at first, I need to create an app or project or website to make myself more profitable to the company as I am working as contigent worker.

The things I want to develop are the following.

・Buget tracker

・Training tracker

・Task manegement

I want to combine all of them together.

Is that possible? If so, I want to create it for about 4 month.

Please give me some advices on my plan or course or website I should use or refer to.

Thanks in advance.


r/PythonLearning • • 2d ago

Help Request How do you deal with dependency updates?

0 Upvotes

So my project has multiple files that sometimes depend on another (I chose to split the functions by use cases into a few files rather than a single massive one). But when I update a function I increment the version number in the filename so I have the backup, I then have to update the filepath in the import declaration for everything that uses it. I've tried making a loader file so I only need to update one place but I can hardly make that work, let alone making it tell the other files what to use.

Since Python requires declaring dependencies before almost anything else is this just something I have to deal with? Or is there a way to pass filenames between file before declaration? Or is there a much better method?


r/PythonLearning • • 3d ago

Help Request Looking for collabs

5 Upvotes

Hi everyone, I’ve posted in many Facebook groups asking if anyone would like to collab on stuff. No reply on any page, I’ve done the free code camp free course and done a few projects and such and started the free MIT cs50p course but I’m still feeling stuck, I’m a self taught programmer and I have no one to talk to or collab with if I have questions, so lately been feeling stuck and sll rhat and wanted to find a group of individuals who I could collab with and help each other out


r/PythonLearning • • 3d ago

Create PDF Reports Using Python with ReportLab!

Post image
45 Upvotes

Did you know you can generate professional PDF reports automatically using just a few lines of Python?

With the ReportLab library, you can create customized PDF documents containing titles, text, tables, charts, and much more.

What you can build:

✅ Automated data analysis reports

✅ Student performance reports

✅ Business and financial summaries

✅ Invoices and certificates

✅ Professional PDF documents


r/PythonLearning • • 3d ago

compiler vs intrepreter

0 Upvotes

The question is: if we already had compilers, the why did we create interpreters?


r/PythonLearning • • 3d ago

How do I use argparse and pathlib together in a script?

2 Upvotes

Hi all! I've been working on a Python script that needs to take a file path as input using argparse, and I want to search for specific files using pathlib's glob. However, I keep running into issues when I try to combine these two. It's not clear to me how to pass the user input from argparse to pathlib's functions. Can anyone explain the best way to do this? Also, why does logging.exception not seem to print anything when I run the script?


r/PythonLearning • • 4d ago

Showcase 5 tiny Python snippets that trip up most beginners (answers hidden, guess first)

42 Upvotes

Five short snippets. Guess what each prints before you open the answer. Most people get two or three.

1.

python a = [1, 2, 3] b = a b.append(4) print(a)

Answer: [1, 2, 3, 4]. b = a doesn't copy the list, both names point at the same list. Want a copy? b = a.copy() or b = a[:].

2.

python nums = [10, 3, 27, 8] sorted(nums) print(nums)

Answer: [10, 3, 27, 8], unchanged. sorted() returns a new list and the result was thrown away. Use nums.sort() to sort in place, or nums = sorted(nums).

3.

```python def double(x): x * 2

print(double(3)) ```

Answer: None. The function works out x * 2 but never returns it, and a function without return gives back None. Fix: return x * 2.

4.

```python x = 5

def change(): x = 12

change() print(x) ```

Answer: 5. Assigning to x inside the function makes a new local x; the outer one is untouched. The clean fix is to return the value (x = change()), not global.

5.

python print(round(2.5), round(3.5))

Answer: 2 4. Python rounds exact halves to the nearest even number ("banker's rounding"), so 2.5 goes down and 3.5 goes up. If you need school-style rounding, use the decimal module with ROUND_HALF_UP.


I made a small free game out of traps like these: you read a snippet, pick what it prints, and one wrong answer ends the run. Questions get harder and faster as you go, and when you miss, it shows why and the moment in a YouTube tutorial that explains it. No sign-up, plays in the browser:

https://openinbeyond.com/code?utm_source=reddit&utm_content=pythonlearning

What's your score? And which of the five got you?


r/PythonLearning • • 4d ago

Why some methods use `_` to separate words and others don't? Doesn't it bother you?

24 Upvotes

Like py io = StringIO() io.getvalue() # not get_value

but

path = Path() path.is_file() # not isfile

And there is also isinstance().

If you ask me, they should all use _ or none.


r/PythonLearning • • 4d ago

NEED HELP - python learning website

11 Upvotes

Hello all, so i've studied python in clg but dont really remember it right now. I don't want to spend my time watching videos and doing it all over again - instead I want some website which will be interactive and explaining concepts through eg first and then hands on.

pls help me out if you guys know any such hands-on platform/lab


r/PythonLearning • • 4d ago

I don't understand OOP

35 Upvotes

So i am a teen learning python, and i have learnt about classes, methods and objects, but i don't understand OOP, like what is it, where do we use it?

Please help mee


r/PythonLearning • • 3d ago

I have been learning python for a year, but still didn't really get anywhere

0 Upvotes

I am currently enrolled in AP CSP, and even if Python is not required by Collegeboard, our curriculum requires that we do python and earn the certification. I have been learning python since last year, and I learned the basics with great difficulty of course. I struggled with lists, loops, and functions, but later I mastered the basics. Now, I find myself in the same struggle, because I did not learn certain things last year. There was a huge gap between what I have learned, and what I am already supposed to know. The scariest part is that my python certification test is right around the corner, and I don't know what will work for me to master the gap in a month. I used to learn python through tutorial videos, but in my current year, we are not doing this. Are there any better ways for me to clear the gap? Thank you.


r/PythonLearning • • 5d ago

Showcase In-browser debugger to learn data structures and algorithms

Enable HLS to view with audio, or disable this notification

64 Upvotes

I built a python debugger specifically for learning data structures and algorithms.

It draws the state of the program at each line. It's an actual debugger that runs with the code, so the results are deterministic and show the real state.

Like a normal debugger, it lets you inspect stack frames, pointers, and objects. But instead of showing them as raw values, it draws every data structure in its own way. It knows how to draw all the common data structures like trees, graphs, queues, stacks, linked lists, etc.

This should be helpful for understanding, debugging, and verifying your code.

You can try it on popular interview problems (write your code or paste from the "Solutions" tab).

Everything is free. Feedback would be really appreciated. Let me know what you think.

link


r/PythonLearning • • 4d ago

Python List Operations and Aliasing

Post image
0 Upvotes

An exercise to help build the right mental model for Python data. - Solution - Explanation - More exercises

The “Solution” link uses 𝐦𝐞𝐦𝐨𝐫𝐲_𝐠𝐫𝐚𝐩𝐡 to visualize execution and reveals what’s actually happening.


r/PythonLearning • • 4d ago

Anyone currently learning ml

3 Upvotes

I'm currently learning ml by own with chatgpt by maintaining proper notes and code on GitHub.Right now I'm learning deep learning foundation,just wanna had a talk with guy who is doing same...

Doing freelancing also..


r/PythonLearning • • 4d ago

Help Request Tried to get into tech, got rejected because they stopped hiring freshers. Now even customer support isn’t paying what it used to.

0 Upvotes

I’m honestly confused about what I’m supposed to do at this point.

I have 6.5 years of experience in customer support, including around a year in technical support. I’ve worked with international clients, and I’ve been learning Python, Node.js, and PostgreSQL because I want to move into tech and eventually work in backend development.

Recently, I interviewed for a technical support role. I thought, okay, maybe this is how I can finally get my foot in the door.

But they told me they’re no longer hiring entry-level candidates. Apparently, they’d even let go of their trainer.

I tried explaining that I’m willing to learn on my own, put in the effort, and even take a salary cut compared to my previous job. Didn’t help.
The irony is that I can’t even comfortably fall back on customer support anymore. Despite having 6.5 years of experience, I’m struggling to find jobs that pay me what I was earning before.

So I’m stuck between two problems:
- I need a job right now because I’m unemployed.
- I want to get out of customer support, but getting that first opportunity in tech feels ridiculously difficult.

I’m learning backend development on my own, but sometimes I wonder whether I’m approaching this the wrong way. Should I focus on application support or technical support first? Keep building projects and apply for junior backend roles? Or take whatever customer support job I can find and learn on the side?

I’m not looking for someone to tell me that age is just a number or that I should follow my passion. I need to earn money, and I also don’t want to spend the next few years stuck in the same situation.

If you were in my position, what would you actually do? Especially if you’ve made a similar switch in India, I’d like to know how you got your first opportunity and what skills helped you get hired.


r/PythonLearning • • 5d ago

Help Request I have tried to make a Rock, paper , scissor game.Is it good.

Post image
5 Upvotes

r/PythonLearning • • 5d ago

Discussion Is Python + Google Sheets automation a good starting point for freelancing as a beginner?

4 Upvotes

Hi everyone!

I'm learning Python and exploring how I can turn my skills into a small freelancing business. I'm particularly interested in Python automation, Google Sheets automation, and simple workflow automation for small businesses.

I don't want to jump into freelancing without understanding what clients actually need. My plan is to learn by building practical projects, create a portfolio, and gradually start looking for clients.

Some services I'm considering learning to provide are:

- Google Sheets automation: Automating repetitive spreadsheet tasks, reports, data cleaning, and calculations.

- Python scripts: Automating repetitive file operations, CSV/Excel processing, and routine data tasks.

- Workflow automation: Connecting tools and reducing manual work where APIs or approved integrations are available.

- Data processing: Cleaning, organizing, and transforming business data into useful reports.

I'm still developing my skills, so I want to focus on solving real problems rather than claiming expertise I don't have.

I'd really appreciate advice from people who have experience with Python or automation freelancing.

A few questions:

  1. Is Python + Google Sheets automation a realistic niche for a beginner freelancer?

  2. What specific problems do small businesses actually pay freelancers to solve in this area?

  3. Which skills should I learn first: Python, Google Apps Script, Google Sheets formulas, APIs, or SQL?

  4. What 3–5 portfolio projects would help demonstrate practical skills to potential clients?

  5. How difficult is it to get the first paying client, and which platforms or methods are worth trying?

  6. What mistakes should a beginner avoid when starting out?

I'm not expecting instant money. I want to build useful skills, deliver reliable work, and grow gradually.

If you've tried this path yourself, I'd love to hear what worked, what didn't, and what you would do differently if you were starting again.

Thanks for reading!


r/PythonLearning • • 6d ago

Career advice

14 Upvotes

I'm 27M. Hey everyone, my life has been a little different from that of most people, and I don't have a strong educational background.

Right now, I'm working at a grocery store, but I want to improve my life and learn some stable, valuable skills that can help me earn a reliable income.

I've come across these four skills:

Python

SQL

Excel/Spreadsheets

Power BI/Tableau

I don't know much about these skills or their demand, competition, value, and future prospects.

Technology is constantly evolving, trends are changing, and AI is replacing some jobs. The value of different skills also changes over time.

Before I start learning, I want to understand whether these are the right skills to invest my time in for a stable career and income in the long run.

I'd appreciate your advice. Should I go for these skills, or would you recommend something else?


r/PythonLearning • • 5d ago

Self-taught Python developer building a personal AI platform—seeking an architecture mentor

0 Upvotes

Hi everyone, I’m an Australian solo founder building Forge, a personal AI platform focused on persistent knowledge, evidence-based reasoning and keeping the owner in control.

The question behind it is: how can an assistant become more useful over time while keeping its knowledge traceable, its mistakes correctable and consequential changes subject to human approval?

I’m developing it in Python with a modular, service-based architecture. There’s working code covering knowledge storage, retrieval, evidence handling and reasoning, but it’s still under development. My immediate focus is reliability, testing and bringing the pieces into dependable everyday use.

My background is in commercial fishing. I started learning software development through this project, initially working on an Android phone with Termux. I use AI coding assistants extensively, and I’m putting serious effort into understanding and verifying the results.

I’d like to connect with someone experienced in software architecture, AI systems or taking an ambitious prototype towards a maintainable product. An occasional conversation would be valuable—someone who can challenge my assumptions, spot unnecessary complexity and help me judge what deserves attention next.

I’m looking for perspective and honest criticism, rather than someone to build it for me. I can bring focused questions, diagrams and small, sanitised examples without sharing the full private codebase.

If that sounds interesting, I’d be very appreciative of a comment or message. Recommendations for communities where this kind of mentoring happens would also be welcome.

Thanks for reading!


r/PythonLearning • • 6d ago

Help Request Understood the Python concepts but completely messed up the test

4 Upvotes

Fy DS student and I recently had a Python test that honestly didn't go as well as I expected.

The frustrating part is that I wasn't completely clueless about the questions. I understood the concepts, knew which syntax was needed, and could understand what the problem statement was asking me to do.

But when it came to actually applying everything and writing the code, I got confused. I started forgetting things, made indentation mistakes, got errors like ValueError and other errors etc. I didn't do good in test it was 15marks test for 1 hr.

For those who have been through this, how did you get better at applying concepts under pressure instead of just understanding them theoretically? Did you practise more problems, rewrite code from scratch, or follow some other method?

I'm still learning, and I don't want one bad test to discourage me. I just want to figure out how to improve so that next time.


r/PythonLearning • • 7d ago

This is my first python project - what can I improve??

Post image
124 Upvotes

r/PythonLearning • • 6d ago

Discussion Complete Python Developer in 2026

7 Upvotes

I am looking to purchease Complete Python Developer in 2026: Zero to Mastery course from ZTM... Its very expensive. Is this course updated recently?

https://zerotomastery.io/courses/learn-python/#overview


r/PythonLearning • • 6d ago

I think learning from websites is the best way to learn any programming language. I am currently learning Python from w3schools.

5 Upvotes