r/PythonLearning • u/saikat_hossen • 8d ago
Python Boolean
I'm having some trouble understanding Python boolean logic, it’s so simple to let it be confusing. Can anyone explain it to me in their own language?
r/PythonLearning • u/saikat_hossen • 8d ago
I'm having some trouble understanding Python boolean logic, it’s so simple to let it be confusing. Can anyone explain it to me in their own language?
r/PythonLearning • u/zfoundme • 9d ago
Hey everyone! Iv been learning python for 6weeks and been building notifio for 3 weeks this is my progress
I've been working on Notifio, A lightweight menu bar app that watches your favorite creators and news sources and pings you the moment something new happens
Github: https://github.com/he3vn/Notifio
Would love to hear what you think about it and please star if you like it!
r/PythonLearning • u/Extreme_Banana7831 • 9d ago
Hi everyone! I've recently started learning Python with SoloLearn and I'm currently working on "logical operations," and everything is going well. I'd just like some advice, firstly, if there's A better app or website than SoloLearn, then, how much time per day should I dedicate to learning Python, and how soon could I start create small games (like Tetris for example, or geometry dash...). Thank you in advance for your answers, I will read all your advice, have a good day!
r/PythonLearning • u/stu_py • 9d ago
Hi r/PythonLearning,
stu.py is a free place to learn and practise Python, right in your browser. No sign-up, no ads, nothing to install, and your progress stays in your own browser.
How it works:
You pick your level (beginner, coder or pro) and follow the Code-Trail, room by room: variables, loops, lists, functions and more.
Over 1000 tasks: predict the output, find the bug, fill the gaps, put lines in order, fill in trace tables, build flowcharts and write your own code.
Stuck? Short trainings, hints and a cheat sheet that points you to exactly what you need for the task you're on.
Already know some Python? Take the room exam and skip ahead.
Repeat & Learn brings back tasks you got wrong, so things actually stick.
A sandbox with console and variable explorer, plus Stew, a small robot who keeps you company.
English and German.
For teachers:
No accounts, no server: learners save their progress as a file and hand it in
Load the files and get a class overview, competence profiles and room exam results
Hand out codes to unlock rooms and award special badges
Coming next: task creator for your own exercises and a test builder
The video shows the beginner path. Two more short videos are on the start page:
one for people who already code
one for teachers
Honest feedback is very welcome:
What's confusing?
What's missing?
What breaks?
Comment here or use the "Feedback" link at the bottom of every page.
Cheers,
Stew
r/PythonLearning • u/kerminister • 10d ago
r/PythonLearning • u/AiriWildMorris33 • 9d ago
r/PythonLearning • u/ernest9888 • 10d ago
I’m currently learning Python from scratch, and I’m looking for people who are also interested in learning Python so we can connect, share resources, help each other understand concepts, and stay motivated. If there’s already a beginner-friendly community or study group I can join, I’d appreciate your recommendations.
r/PythonLearning • u/Ihateusernames711 • 9d ago
Does anyone know of a reputable Python Boot Camp available online that is instructor lead?
Expensive or cheap, just need reputable and instructor lead...or even tutoring
r/PythonLearning • u/Such_Historian8600 • 9d ago
I've tried almost ten times and every single time i stop somewhere along the way , but this time im making it public , i'll start python today , i'll practice everyday , and i'll know most things if not all thing about python in three months or less . If anyone wants to join in go ahead and comment , i'll make a group or something and alert everyone , everyday . To those who know python , you can send motivation or advice for me or anyone that wants to learn , THANK YOU AND GOODLUCK.
r/PythonLearning • u/ActuatorBrilliant595 • 9d ago
Hi.
MY PROBLEM: I'm terrible at building algorithms. I never know "WHAT TO WRİTE NEXT LİNE" when coding. im very bad at thinking how the algoritm works... need help. pls
--- Another issue : i haven't decided which field of Python I want to specialize in yet. So i dont know which tools or programs or technologies I should learn beside with python... and I feel like I'm wasting time trying to figure it all out, yeh i feel lost :(((
***I think the best thing to do is learn Python basics really well first, no matter which field we choose later***
Availability & Time Zone: Time zone: UTC+3. I'm working during the day so im available in the evenings/nights.
I also have a learning project idea. For example, we could use AI to create a simple website (like a dietitian's website or dentist whatever ) The frontend isn't our focus, so AI can handle that part. Then, we can focus on learning Python and backend by actually building the backend together. and learn the backend tools.. or data ? idk
For example, the website could have an "appointment form" with name, surname, phone number, email . We could learn how to handle all this data using Python.
I thought this could be a good way to practice. What do you think?
one last thing: rarely open Reddit, so I might miss your message here. If you're seriously interested u are allowed to quick dm me IG:tecna06 (my profile is a jersey).
r/PythonLearning • u/Ambitious_Cry_4908 • 9d ago
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 • u/clcodingupdates • 9d ago
x = 5
print((x := x + 3) * (x := x - 2))
What will be the output?
A) 24
B) 36
C) 48
D) 30
r/PythonLearning • u/LogicalAutistic • 10d ago
I am very new to coding (2 days old new) and have no background experience. I was just wondering at what point do you think you should start understanding Python? I’d like to try and create a timeline before saying ‘I can’t do it’
r/PythonLearning • u/Ok_pettech • 9d ago
Running AutoGPT locally without Docker often trips people up because the official maintainers shifted primary development to AutoGPT Platform, which requires containerization. However, if your goal is running the agent loop natively on your host machine, AutoGPT Classic inside the classic directory still supports direct Python execution.
The setup requires Python 3.12, Git, and Poetry. A common mistake is attempting to launch Poetry commands from the repository root or trying to install dependencies via standard global pip, which breaks the environment locked inside poetry.lock. You must execute all Poetry commands directly from the classic subfolder, verify Poetry targets the correct Python 3.12 interpreter, and configure your model provider credentials inside classic/original_autogpt/.env.
I put together a complete technical breakdown that walks through dependency resolution, workspace directory isolation, Llamafile local endpoint routing, and diagnosing environment failures across Linux, macOS, and WSL 2.
Check out the full walkthrough: https://interconnectd.com/blog/335/how-to-run-autogpt-without-docker-step-by-step-python-guide/
r/PythonLearning • u/Vplayzgamez • 10d ago
Problem fixed!
I'm making this "gambling" (no real money involved, you only play for fun) program with multiple games, including roulette. I used random.csoices so that I can pick a random colour of the three given colours, and weights so that green doesn't show up every third spin.
The program works, but the results all have this annoying ['result'] look (underlined with red in the picture)
Does someone know how to fix this?
r/PythonLearning • u/Romapolitan • 10d ago
So Pyret is supposed to be a beginner learning language and currently I have to courses one that starts with Pyret and one that is immediately about Python. Since I am not good at this stuff in the first place, needing to do these courses because I am at a technical university as a humanities major somehow, I am already of course finding this a bit difficult.
That said, for some reason, sitting down and trying to learn I feel like I am having a better time understanding Python than Pyret right now. I am still not good but my Pyret homework frustrates me way more. This is pretty bad since there will be an evaluation in a few weeks, so I do want to get enough points on that since I just need to pass. Why am I having more diffculty with a tutorial language? Any tips?
r/PythonLearning • u/random_observer20 • 10d ago
Hello guys ! I want to know wich are the most common problems faced by python programmers when they are coding ? (It must be a problem that isn't solved by any librarie, native or not, from python)... : )
r/PythonLearning • u/PrettyAstronaut9991 • 10d ago
Hi everyone!
I'm an independent developer, and I'd like to share a project I've been working on: FW Downloader Manager.
It's a desktop application built with Python and PyQt5. I developed it to manage regular file downloads as well as video and audio downloads from supported websites.
Some of its main features:
Multi-connection HTTP/HTTPS downloads (up to 32 connections when supported by the server).
Pause and resume support for compatible downloads.
Video and audio downloads using yt-dlp.
FFmpeg integration for media processing.
Browser integration with Chromium-based browsers and Firefox.
Download queues, groups, scheduling, and speed limits.
Multilingual graphical interface, including Arabic RTL support.
I built this project to put my Python development skills into practice, and I'd genuinely appreciate feedback from the community.
GitHub: https://github.com/FouadWre-Dev/FW-Downloader-Manager
If you find this project useful, I'd appreciate a ⭐ on GitHub. Feedback and suggestions are always welcome!
Thanks!
r/PythonLearning • u/18ahmed • 11d ago
Hi lads,
Just got back into programming as my job didn’t need it until now. I’m practising writing python scripts to automate tasks for me, however iv noticed that VScode autofills parts out. I do have an idea of what I want and start it off, VSCODE intelligence does the rest and I tailor it specifically to the task. I feel a bit guilty as it feels like I’m not learning like the old days (stack overflow, constantly searching up how to do something). I do understand that AI is used frequently now for coding so my question is, am I overthinking this?
I have a new job coming up and using Python to automate is a big part of it.
r/PythonLearning • u/saikat_hossen • 11d ago
Have any Python learning tips?
r/PythonLearning • u/TotalUnlucky2814 • 11d ago
Hello everyone!
I'm a computer science teacher, and lately I've been preparing visual examples for my students using games where everything is automated with code. Right now I'm hooked on The Miner Was Replaced (the new DLC for The Farmer Was Replaced), where you control a mining drone by programming it in a stripped-down version of Python.
Now I have the problem of mining coal. In the game, the world is a 3D grid (X, Y, Z) and coal doesn't spawn randomly; instead, it generates in contiguous veins (if you find coal on a tile and there's more, it's located North, South, East, or West of that tile... Same Z coordinate).
The solution I ended up using (Probing + Flood-Fill with queues):
Instead of complicating things with weird data structures, I used elementary school geometry with two lists (visited and to_visit) to traverse the vein as a connected graph:
dir = [North, West, South, East]
delta = [(0, 1), (-1, 0), (0, -1), (1, 0)]
def minar():
pos_actual = (get_pos_x(), get_pos_y())
visitados = []
por_visitar = [pos_actual]
while len(por_visitar) > 0:
pos_actual = (get_pos_x(), get_pos_y())
if get_ground_type() == Grounds.Coal:
dig()
for i in range(4):
# 1. Does the neighbor have coal?
if get_ground_type(dir[i]) == Grounds.Coal:
nx = pos_actual[0] + delta[i][0]
ny = pos_actual[1] + delta[i][1]
# 2 and 3. Have I not visited it yet, and is it not already in the queue?
if (nx, ny) not in visitados and (nx, ny) not in por_visitar:
por_visitar.append((nx, ny))
por_visitar.pop(0)
visitados.append(pos_actual)
if len(por_visitar) == 0: # <-- This is where I made the bug of the century
break
utils.goto(por_visitar[0][0], por_visitar[0][1])
Later, I added a blind mining phase (minar_a_ciegas - 3 blocks down) combined with an explorar() sweep to uncover new layers when a vein is exhausted. Watching the drone detect a block and start eating up the entire chain reaction of the vein is hypnotic:
👉 Here you can see what the drone devouring the veins in the game looks like, along with the entire live coding session: http://www.youtube.com/watch?v=ZQqoMDtLalA
(Original audio is in Spanish, but the English AI audio track is available in the player settings, and all the code is right on screen).
Question for you guys: Considering that this Python environment doesn't have collections.deque or external libraries, how would you optimize the search phase between veins to avoid doing an O(N^2) map sweep every time por_visitar empties out?
r/PythonLearning • u/Exciting_Energy9674 • 11d ago
Hey everyone!
I'm a beginner in Python, and today I learned about variables and data types.
I learned a little about:
- Variables
- Integers ("int")
- Floating-point numbers ("float")
- Strings ("str")
- Booleans ("bool")
I'm trying to understand the fundamentals properly instead of rushing through the lessons.
But now I'm wondering what I should learn next.
My questions for experienced Python programmers:
What topic should I learn after variables and data types?
What small projects can I build using these concepts?
What advice would you give someone who is just starting their Python journey?
What common mistakes should beginners avoid?
I'd really appreciate your advice and suggestions.
I'm looking forward to learning more and sharing my progress here!
Thanks! 🐍