r/PythonLearning • • Aug 01 '26

Showcase Python Developers: What's one keyword that completely changed how you saw Python?

5 Upvotes

It's always interesting how one small language feature can completely change the way you think about Python—not because it's flashy, but because it unlocks a different way of solving problems.

Whether it was something simple like with, yield, nonlocal, match, or something more obscure, I'd love to hear why it changed your perspective—and what you were doing before you discovered it.


r/PythonLearning • • Oct 18 '25

Uncertainty aware skin cancer classification using monte carlo dropout method. Python code

0 Upvotes

Ji every one I have been working on a project and im getting errors and unexpected outputs. I tired to fix it myself but couldn't figure it out.

I have recorded a short video showing my whole cod. How i run it. And what errors appear Please watch it and let mee know what i might be doing wrong

Thank you in advance.


r/PythonLearning • • May 25 '26

what is GITHUB and leetcode?

1 Upvotes

so i have started learning python from 12 hour long video of bro code
i wanted to know what is github and leetcode and how do you set it up? i am very new to coding type of stuff


r/PythonLearning • • Sep 29 '24

what’s the problem here?

Post image
1 Upvotes

not familiar with python, i’m just helping my friend’s sister 😅


r/PythonLearning • • 8d ago

Help Request What’s the best tutorial for learning Python?

0 Upvotes

I did some Java programming before- not an expert though


r/PythonLearning • • Mar 28 '26

[help] What Are The Different APIs In Python?

1 Upvotes

I am Diving Into APIs. I know What APIs are..

But, I am confused Different Types of APIs , When to use which one In Python such as FAST API and Tell me Usecase..


r/PythonLearning • • May 24 '25

Python's Ghost Math Engine

Post image
0 Upvotes

r/PythonLearning • • May 29 '25

Discussion Unpopular Opinion about LLMs (ChatGPT, DeepSeek etc.)

35 Upvotes

I've seen a lot of posts, especially from beginners or those just starting out with Python or coding in general, where the mention of AI often triggers a wave of negativity.

Here's the truth:
If you dislike LLMs or AI in general, or you're completely against them, it's likely because you're stuck in "beginner mode" or have no real understanding of how to prompt effectively.
And maybe, just maybe, you're afraid to admit that AI actually works very well when used correctly.

On one hand, it's understandable.
This is a new technology, and many people don’t yet realize that to fully benefit from it, you have to learn how to use it, prompting included.
On the other hand, too many still think AI is just a fancy data-fetching tool, incapable of delivering high-quality, senior-level outputs.

The reality is this: AI isn't here to replace you (for now at least XD), it's here to:

  1. Speed up your workflow

  2. Facilitate learning (And the list goes on...)

To the beginners: learn how to prompt and don’t be afraid to use AI.
To everyone else: accept the tools available to you, learn them, and incorporate them into your workflow.

You'll save time, work more efficiently, and probably learn something new along the way.

Now, I'll give some examples of prompting so you can test them yourself and see the difference:

  • Feynman Technique: Help me explain [topic] in simple terms as if teaching it to a young child, this should ensure I grasp the fundamental concepts clearly.

  • Reverse Engineering: Assist me in reverse engineering [topic]. Break down complex ideas into simpler components to facilitate better understanding and application.

  • Assistant Teacher: You are an assistant teacher for [topic] coding project. Your role is to answer questions and guide me to resources as I request them. You may not generate code unless specifically requested to do so. Instead, provide pseudo-code or references to relevant [topic] libraries, methods or documentation. You must not be verbose for simple one step solutions, preferring answers as brief as possible. Do not ask follow-up questions as this is self-directed effort.

There are plenty of other type of prompts and ways of asking, it all comes down to experimenting.
Just take those examples, tweak them and fine tune them for whatever you're trying to achieve/learn/work at.

EDIT: I’m not suggesting that AI should replace or be solely used as a replacement for Google, books or other resources. In shorter terms, I’m saying that if used CORRECTLY it’s a powerful and very useful tool.

EDIT II: I think many people are (involuntarily) interpreting the post as defending “vibe coding” or relying solely on AI to write code.

I’m not saying you the reader, or anyone else is doing this intentionally just that it’s become clear that the main reason people criticize the use of LLMs is the assumption that users rely on them entirely for low-effort, vague coding without putting in real work.

But LLMs are no different from using Google, reading a book, or checking documentation when you have questions or get stuck on a problem.

The only difference is:

  1. When you Google something, you’ll often end up on Stack Overflow or similar sites which have become memes in themselves for how beginners are often treated.

  2. With books or documentation, you can use the index to jump directly to the relevant section.

  3. The same idea applies to LLMs: they’re just another tool to find answers or get guidance.

My main critique is that most people don’t know how to write clear, detailed, and well-structured prompts which severely limits the usefulness of these tools.


r/PythonLearning • • May 12 '25

Help Request need help

Post image
0 Upvotes

i dont know what to do next and im completely a beginner.. please help :')


r/PythonLearning • • Oct 27 '25

I wrote a 3000-line Python script with Microsoft SQL — how can I convert it into a fully functional website?

2 Upvotes

Hi everyone,

I’ve written around 3000 lines of Python code that connects to a Microsoft SQL Server database and performs various operations (data insert, fetch, update, etc.).

Now I want to convert this into a fully functional web application, where users can interact through a web interface instead of the command line.

I’m a bit confused about how to start:

Should I use Flask, Django, or something else?

How do I handle the database connection safely in a web app?

What’s the best way to deploy it (maybe on Azure or another platform)?

Any suggestions, tutorials, or guidance would be really appreciated. 🙏

Thanks in advance!


r/PythonLearning • • Mar 10 '26

How do I set it up

2 Upvotes

I feel fucking stupid and I’m so pissed. Can someone give me a very very very dumbed down way of setting up python on windows. So dumbed down a 4 year old could repeat it and everyone would call it a genius


r/PythonLearning • • 7d ago

What the 3 Numbers in a Python Version Mean?

2 Upvotes

Python versions have three numbers, like 3.15.2. Here's what each one means and which one you actually choose.

3 = major version (always 3 for this course)
15 = feature release, the one you choose
2 = micro release, bug fixes and security fixes

▶️ Full lesson (Which Python should you install?)
📚 Free Python course playlist

Youtube: Amir Zare Dev

🎵 Music: "Misdirection" – The Grey Room / Density & Time (YouTube Audio Library)

#Python #LearnPython #PythonForBeginners


r/PythonLearning • • Nov 06 '25

Python Mutability

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

Help Request Could someone recommend where to code

0 Upvotes

I’m sorry i downloaded reddit for this and im not used to how it works sorry im so desperate.

I do a-level computing and what we use in college (visual studio code) doesn’t work at home and i’ve tried loads of free online programs but they don’t run the code that we worked on.

If anyone could recommend where i could code that would work (preferably free)
thank you

edit - thanks everyone some of your answers worked and my teacher finally replied to my email


r/PythonLearning • • May 16 '26

What if I start streaming?

2 Upvotes

I always wanted to be good at DL but I never really start so what if I start streaming myself learning until I build the biggest open source project ever!!


r/PythonLearning • • Sep 25 '26

Help Request PYTHON log problem

0 Upvotes

When developing an application, I don't want to rely on text files like .txt files to store data that needs to be kept.

After I finish coding my application and turn it into an EXE, I try to keep it as a single file. Because having to carry a log file around with the EXE all the time is annoying.

Personally, I don't want to use with open. I asked ChatGPT about this, but I didn't get many useful answers.

So, fellow programmers, is there an alternative to this? Or am I just gonna have to bite the bullet and use a log file?


r/PythonLearning • • Jul 13 '26

I Asked AI Not to Give Me Code—Here's What Happened

0 Upvotes

I tried learning Python from YouTube many times, but I always ended up giving up.

The biggest problem wasn't Python itself—it was the way I was learning. I was mostly watching tutorials and following along without really thinking.

So I decided to try something different.

Instead of asking AI to generate code for me, I asked it to act like a mentor. I specifically said:

"Don't give me the complete code. Make me think. Ask me questions and let me solve the problems."

My first project was a simple CLI Calculator.

At first, I learned variables, user input, if/elif/else, loops, break, continue, and basic arithmetic operators.

I thought I had finished the project.

Then I was asked:

"What happens if the user divides by zero or performs modulus with zero?"

I hadn't even considered that.

Instead of getting the answer, I had to go back, test my code, think through the problem, and fix it myself.

That one question completely changed how I think about programming.

Now, whenever I write code, I don't just ask:

"Does it work?"

I also ask:

"What could go wrong?"

I feel like this approach has helped me learn much more than simply copying code from tutorials.

For experienced developers:

Do you think learning through small projects and guided questions is a better approach than following long tutorials?

I'd love to hear how you learned programming.


r/PythonLearning • • Jul 22 '25

Discussion mystring command

Post image
6 Upvotes

Was watching a python tutorial and came across the mystring variable. In this instance, if you're trying to print a variable, I don't understand the use of the mystring command (line 1 and 2) when instead of assigning a string value, you can just print it directly (line 4). It must be more useful in other contexts right?


r/PythonLearning • • Aug 02 '26

Discussion Does coding have any future?

0 Upvotes

im a student, 14 years old. im starting to learn coding but i asked myself if coding has benefits in the next 6-8 years because ai is replacing everything. so i have a question for the professionals- can coding help you earn? specially in the future.


r/PythonLearning • • Oct 12 '25

How do you know you're smart enough to learn Python...asking for a friend 😆

5 Upvotes

r/PythonLearning • • Apr 25 '25

Help Request Why won't this work

Thumbnail
gallery
3 Upvotes

I'm trying to create a loop that iterates through a list and adds each number to get the total of all the numbers in the list. It just doesn't work. I don't know why. The sorted [count] thing prints the number fine but doesn't work in a function to add the numbers.


r/PythonLearning • • May 27 '26

WHERE TO LEARN PYTHON FROM SCRATCH ???????( HELP ME)

0 Upvotes

I am 1st year college BTECH agriculture student and I want to learn Python ( basically AI skills ) . i am starting from python because that's what Chatgpt told me. I don't know where to start and what to study can you please tell me from where i can learn the skill to built a good resume as I am focusing abroad ( specifically Netherlands , USA like country where agro-tech is demanding) for higher study .

i don't know anyone in this field if someone is related to this field please give me some advice it will be very helpful.


r/PythonLearning • • Mar 14 '26

LEARNING PYTHON

3 Upvotes

Well I have decided i want to start learning python.

I am planning to self learn it to a level I can code a single game.

Any advice?🙃


r/PythonLearning • • 16d ago

Hello

Post image
0 Upvotes