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 • • 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")

r/PythonLearning • • May 06 '26

Can someone help me with some code

2 Upvotes

my code needs to ask the user to enter DNA value
only accept the letters A, C, G, and T (has to be capital letters) and terminate to stop the code
then if accepted it needs to be dividable by 3 eg: CTA, CTTGAC, TTTCCCAAAGGG

i only need that part of the code as i can figure out the rest on my own

this is what i have so far
DNA_list = []
zero = 0
stop_code = terminate

#keep asking till terminate
while true
DNA = input('Enter DNA value: ')

if DNA == stop_code:
break
try:
except ValueError:
#DNA /3 = append then ask again
DNA_list.append(DNA)
DNA = input('Enter DNA value: ')

#print all out in a list

if len(DNA) > zero:
print("Valid DNA")
for DNA in DNA__list:
print(f"{DNA}")


r/PythonLearning • • Aug 06 '26

What is the best way to learn python

2 Upvotes

r/PythonLearning • • 18d ago

Discussion What will be the output of the following Python code?

0 Upvotes

print(sum({1, 2, 2, 3} & {2, 3, 4}))


r/PythonLearning • • May 30 '25

Discussion I programmed a virus for fun because I was bored in class (I made it unharmful). May be the dumbest question, but can I have this on my portofolio? I think it's an interesting project.

2 Upvotes

It essencially starts multiple unlimited loops of opening a high res picture of a toddler that crashes the computer quite quickly, then when you shut down the computer it starts again. I turned the program into an exe file and put it on an usb-stick, and made it so that when I plug in the usb-stick the exe file starts downloading on the computer and opens instantly. (Not gonna say how, so don't ask).