r/PythonLearning • u/Moral_Roulette34 • Jul 02 '25
[help needed] counter not working?
i dont see why it says the target appears 0 times if target = 1 and 1 appears once in the list
r/PythonLearning • u/Moral_Roulette34 • Jul 02 '25
i dont see why it says the target appears 0 times if target = 1 and 1 appears once in the list
r/PythonLearning • u/frescoj10 • May 21 '25
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 • u/Automatic_Elk_5252 • Nov 05 '25
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 • u/[deleted] • Mar 26 '26
how ?
r/PythonLearning • u/No-Seaweed-7579 • May 21 '26
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 • u/Saltypine24 • Dec 17 '24
r/PythonLearning • u/Low_Contribution6240 • Jul 20 '26
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 • u/Individual-Side-3585 • Jul 12 '26
How to starting learn python
r/PythonLearning • u/roderiano • May 11 '26
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:
Documentation: https://moon.spa.roderiano.com/
Framework repository: https://github.com/roderiano/moon-spa
VSCode extension: https://github.com/roderiano/lua-spa-extension
Would love feedback, ideas, criticism, or contributions 🚀
r/PythonLearning • u/Reh4n07_ • Apr 05 '26

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 • u/greatlearningglobal • Sep 21 '26
r/PythonLearning • u/Sea-Ad7805 • Oct 09 '25
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/BigHeadedGumba • May 14 '25
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 • u/Basquat13 • Nov 21 '25
r/PythonLearning • u/hibaa-random • Jul 08 '26
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 • u/Time_Collection_2320 • Mar 08 '26
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 • u/One-Type-2842 • Apr 02 '26
What are your Views and Counterviews on match case condition checking In Python?
Are they Reliable as if elif else statement?
r/PythonLearning • u/OrganizationFirm7647 • Oct 30 '25
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 • u/Rollgus • Aug 01 '25
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 • u/ilovetigers105 • May 06 '26
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 • u/Turbulent_Strike7438 • Aug 06 '26
r/PythonLearning • u/clcodingupdates • 18d ago
print(sum({1, 2, 2, 3} & {2, 3, 4}))
r/PythonLearning • u/uraveragenorwegian • May 30 '25
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).