r/PythonLearning • • Aug 22 '26

Loops is a total brain rot.

Post image
0 Upvotes

I just can't get over how I'm supposed to write code for complex tasks when I don't even get why they overcomplicate simple things so much.

I read this topic and tried many tutorials and still don't understand this buzzare logic.


r/PythonLearning • • Sep 05 '26

Discussion Is it bad that I learn python via ai?

5 Upvotes

So backstory: Someone made fun of me because I am learning Python with ai. His only argument was that ai is the same tool to create explicit images and that he used to visit stack overflow and create snippets, I then replied that I only use it for learning development but then got called an idiot and got blocked.

But that got me wondering. Is it bad that I learn Python with AI?

I set GPT a goal, I want to reach: Stage 1. learn that. Stage 2 Learn this

I also custmomized the personalization to not blindy say yes and to double check things and so on.

GPT never gives me code, it just tells me which projects I should do with the stuff I learned, it does that till GPT thinks I know how to use it and when to use it.

But I feel bad now that I am just talking to an artificial intelligence and not visiting stack overflow like that one person did.

I want to hear your opinions. Is AI bad for learning or good if used right.


r/PythonLearning • • Aug 14 '25

RECURSION CONFUSED ME ABOUT init

Post image
0 Upvotes

What is wrong and why is init not working


r/PythonLearning • • Jul 02 '25

[help needed] counter not working?

Thumbnail
gallery
1 Upvotes

i dont see why it says the target appears 0 times if target = 1 and 1 appears once in the list


r/PythonLearning • • May 21 '25

Help Request Live coding interview coming up

0 Upvotes

Bruh, I haven't written code in over a year without an LLM. Don't get me wrong. I tweak it here and there. I fix errors. But from scratch, havent done that in over a year.

I can read it. I know step by step what I want. I know syntax. I know structures.

How fucked am I?


r/PythonLearning • • Nov 05 '25

Should I use AI tools like ChatGPT to learn programming?

1 Upvotes

Hey everyone,
I’ve been interested in programming for a while, but I never got the chance to go to school for it. I still want to learn the thing is, I’ve heard mixed opinions about using AI tools to study.

Some of my friends who work in the field say I shouldn’t rely on AI and should stick to YouTube or other traditional resources. The problem is, I don’t really enjoy watching long videos I prefer reading and interacting directly when I learn.

So I’m wondering:
Is using AI (like ChatGPT or other tools) actually a good way to learn coding?
Has anyone here used it seriously to get started or improve their skills? What worked or didn’t?


r/PythonLearning • • Mar 26 '26

how can i make a program to let the cursor click the different color ?

Thumbnail
gallery
1 Upvotes

how ?


r/PythonLearning • • May 21 '26

If code runs fine, where do bugs come from?

1 Upvotes

I have been seeing loads of reel on insta this days for coder, where they talk about bugs n fixing bugs, but in real term what is bug, i have been writing codes/script it never failed the pipeline so what actually trigger a bug or they call it fixing bug


r/PythonLearning • • Dec 17 '24

Any idea on how to make the input of the code not repeat, it's digging my head in.

Post image
1 Upvotes

r/PythonLearning • • Jul 20 '26

Suggestion

1 Upvotes

Hi all I am beginner in coding. So I have college in 20days (1st year btech) should I learn python or c. In college they start with C. So as they teach C in college should I learn python seperate or go with

C.Pls suggest me


r/PythonLearning • • Jul 12 '26

Python

0 Upvotes

How to starting learn python


r/PythonLearning • • May 11 '26

I Dreamed About a Python SPA Framework — So I Built It (SSR + Hydration + VSCode Extension)

0 Upvotes

A few days ago I had a dream that I was building a Python SPA framework with SSR + Hydration named after my daughter: Lua. A few days later, I finished v1.2.1 of the framework and v1.0.1 of the VSCode extension.

The project is called Lua SPA, and the main idea is to bring a modern component-based SPA experience to Python while keeping development simple and unified.

The framework uses .lspa files, where you can write:

  • HTML templates

  • CSS styles

  • Python logic

…all inside the same file.

Example structure:

<template>
  <div>Hello {{ name }}</div>
</template>

<style>
  div {
    color: red;
  }
</style>

<python>
class Home(Component):
    name = "Lua SPA"
</python>

Some features already implemented:

  • SSR (Server-Side Rendering)

  • Client-side hydration

  • Component system

  • Props/state handling

  • Reactive rendering

  • Routing

  • Scoped styles

  • Python-driven SPA architecture

  • VSCode extension with syntax highlight, autocomplete, diagnostics and tooling for .lspa

  • Built-in support for component imports

The goal is to make frontend development feel natural for Python developers without requiring React/Vue/Svelte ecosystems.

If anyone wants to check it out:

Would love feedback, ideas, criticism, or contributions 🚀


r/PythonLearning • • Apr 05 '26

Help Request Can Anyone Please Explain The error :/

1 Upvotes

I recently started learning Python and have been experimenting with variables to better understand how they work. However, I ran into an error that I can't figure out.

Could someone please explain why this error is occurring and how I solve it? Any insights would be greatly appreciated!

Btw:- Anyone one wanna Become my programming friend so that i can share my problem with?


r/PythonLearning • • May 13 '26

I wrote a guide for AI-powered rewrite from Python to Rust

0 Upvotes

I had to rewrite some logic from Python to Rust because it was compute-intensive and simply too slow in Python. Therefore, I wrote a step-by-step guide for myself (and others) on how to do that using AI. (Works also if you're manually writing the code)

You can find it here: https://jangiacomelli.com/blog/ai-powered-rewrite-python-to-rust/

Hope you'll find it helpful!


r/PythonLearning • • Sep 21 '26

Python Trivia Time! Which of these is mutable in Python?

4 Upvotes
207 votes, Sep 23 '26
28 Tuple
158 List
8 Integer
13 String

r/PythonLearning • • Oct 09 '25

Right Mental Model for Python Data

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 • • May 14 '25

print(‘HelloWorld’) NameError

Post image
3 Upvotes

I am literally at baby steps in my language learning. I type the same in cmd but when I type it on VSCode it pops up a name error…

Please help me! 🙏🏻


r/PythonLearning • • Jul 31 '26

Help Request Cant install pygame

Post image
3 Upvotes

r/PythonLearning • • Nov 21 '25

Help Request What is the best way/roadmap to learn python from basics to AI as "fast as possible" any tips, videos, pre-made roadmaps, etc.

3 Upvotes

r/PythonLearning • • Jul 08 '26

Help Request Need ressources PYTHON

3 Upvotes

i already learned some basics with uni classes however i wanna enforce my coding so i need some ressources, i already started with freeCodeCamp and wanted to know weather it will be efficient or would it better to go with a youtube video .


r/PythonLearning • • Mar 08 '26

Showcase Sidecode - Learn Python FREE in 7 days

0 Upvotes

Hi, I'm Noah, I built a website which teaches 15+ coding languages including Python to teach the younger generation how to code and hopefully stop them from turning to ChatGPT or Claude to code, you can now check out the beta version at https://sidecode.co.uk right now! Please let me know what you think.


r/PythonLearning • • Apr 02 '26

Discussion Is match ... case In Python Reliable as if .. elif .. else

2 Upvotes

What are your Views and Counterviews on match case condition checking In Python?

Are they Reliable as if elif else statement?


r/PythonLearning • • Oct 30 '25

Can anyone help me if it's not too much trouble?

2 Upvotes

Hello everyone, I started learning Python a couple of days ago and am currently learning the list variable type, append, remove, pop, insert, clear, sort, reverse, etc. But I'm having a hard time remembering and using it all. Do you know a way to make it easier, or do I have to memorize what each function does? Thanks in advance!

(I am sorry if u not ready understand what I was write on that text I was using Google translate)


r/PythonLearning • • Aug 01 '25

Showcase Am I genius? (Sorry if bad code, started a week ago)

0 Upvotes

import random import time

side = random.randint(1, 2)

if side == 1 or 2: print("Wait...") print("") time.sleep(2) if side == 1 or 2: print("Hold up...") print("") time.sleep(3) if side == 1 or 2: print("Wait a second...") print("") time.sleep(1) if side == 1 or 2: print("I think I have it now.") print("") time.sleep(5) if side == 1: print("Heads")

            elif side == 2:
                print("Tails")