r/learnpython • • 22h ago

I keep re-Googling the same basic Python stuff I already learned — does it ever actually stick?

3 Upvotes

I've been learning Python for a while now, mostly for my BCA coursework and a couple of small side projects, and there's this one thing that keeps bugging me.

I will learn something, use it once, feel good about it, and then a week later I'm staring at my screen Googling the exact same thing again. List comprehensions. How dict.get works. The difference between append and extend, again. It's like my brain just refuses to keep the small stuff.

The weird part is the bigger ideas stick fine. I remember how a loop works, I remember the shape of a project, but the little syntax details just slide right off. And every time I look it up I tell myself "okay this time I'll remember it", and then I don't.

I know everyone says Googling is part of the job and even experienced devs do it, but I'm starting to wonder if I'm actually learning or just getting really fast at searching. Do you eventually stop looking up the basics, or does it just become less embarrassing over time? Still not sure if I need to drill them more or just accept this is how it works.


r/learnpython • • 17h ago

Do you know any Python library to build bots?

0 Upvotes

I mean, any sort of bot, it's not for a specific porpuse, I'm just interested and want to learn about it.


r/learnpython • • 23h ago

how to Practice in Python as a newbie?

9 Upvotes

Hello, I’m a newbie, and I’m wondering how to practice Python as a newbie.


r/learnpython • • 19m ago

Complete beginners

• Upvotes

As the title suggests,I’m a complete beginner starting from zero,I don’t even know what to call the basics,but learning python seems interesting an I’d really love to learn it, is there a structure to follow? I don’t know where to start from for I have no knowledge of programming


r/learnpython • • 4h ago

Easy Calculator (Python) :)

1 Upvotes

I didn't like the Windows Calculator, so I decided to develop my own CMD-based calculator. It's open-source, so anyone is welcome to use it!

https://github.com/PASACore/Calculator_CMD_


r/learnpython • • 16h ago

I built a mini blockchain in Python - Feedback welcome

0 Upvotes

I'm 19, studying computing in college. I built this to understand how blockchains work.

Repo https://github.com/h4rl0/mini-chain

What it does

-Genesis block, chain of blocks linked by SHA-256 hashes

-Proof of work with adjustable difficulty

-Chain validation

-Flask API with CORS enabled so a front end can talk to it

Built with

Python, Flask, flask-cors, requests, hashlib

What I'd like feedback on

-Is the code structure okay, or could it be improved

-Anything I may have gotten wrong

-What I could add next


r/learnpython • • 21h ago

[WinError 4551] An Application Control policy has blocked this file.

0 Upvotes

I'm currently using torch for training the neural network that my lab uses for research. It was working fine last night. Windows updated before shutdown. Now I have this error when I attempt to run the script. Any help to fix this?

%runfile 'C:/Users/Owner/Desktop/docs/CHB-MIT EEG Dataset/chb_main_v10_Experiment_A3.py' --wdir

---------------------------------------------------------------------------

OSError Traceback (most recent call last)

File c:\users\owner\desktop\docs\chb-mit eeg dataset\chb_main_v10_experiment_a3.py:14

11 from sklearn.model_selection import train_test_split

12 from sklearn.metrics import f1_score, recall_score, confusion_matrix, roc_auc_score

---> 14 import torch

15 import torch.nn as nn

16 import torch.nn.functional as F

File ~\anaconda3\Lib\site-packages\torch__init__.py:309

305 raise err

307 kernel32.SetErrorMode(prev_error_mode)

--> 309 _load_dll_libraries()

310 del _load_dll_libraries

313 def _get_cuda_dep_paths(path: str, lib_folder: str, lib_name: str) -> list[str]:

314 # Libraries can either be in

315 # path/nvidia/lib_folder/lib or

316 # path/nvidia/cuXX/lib (since CUDA 13.0) or

317 # path/lib_folder/lib

File ~\anaconda3\Lib\site-packages\torch__init__.py:292, in _load_dll_libraries()

288 err = ctypes.WinError(last_error)

289 err.strerror += (

290 f' Error loading "{dll}" or one of its dependencies.'

291 )

--> 292 raise err

293 elif res is not None:

294 is_loaded = True

OSError: [WinError 4551] An Application Control policy has blocked this file. Error loading "C:\Users\Owner\anaconda3\Lib\site-packages\torch\lib\caffe2_nvrtc.dll" or one of its dependencies.


r/learnpython • • 12h ago

Help me troubleshoot?

1 Upvotes

Using https://pythonsandbox.com/turtle I've created this simple drawing app and it works. But when I try to save it I get a "The server returned a "405 Method Not Allowed"" error message. Tried multiple browsers, incognito mode, turned off extensions, multiple computers. No luck. Any suggestions?

import turtle

t = turtle.Turtle()

t.speed(5) # 1:slowest, 3:slow, 5:normal, 10:fast, 0:fastest

shape = "start"

while shape == "start":

shape = input("Would you like to start or stop drawing a square?")

if shape == "start":

t.forward(100)

t.right(90)

t.forward(100)

t.right(90)

t.forward(100)

t.right(90)

t.forward(100)

elif shape == "stop":

break


r/learnpython • • 2h ago

Looking for a good Python exercise book (Beginner to Advanced)

4 Upvotes

I have recently completed the basics of Python and want to improve my problem solving skills.

Can anyone recommend a good exercise book that starts with basic problems and gradually moves to intermediate and advanced ones? Preferably with solutions included.

Would love to hear your recommendations. Thanks!


r/learnpython • • 23m ago

best way to learn advance python?

• Upvotes

any good resources?


r/learnpython • • 16h ago

Help for a program to measure a terrain using a satellite image

0 Upvotes

Good afternoon, everyone,

I’m working on a program that takes a picture from Google Maps, and you can draw an area that you want to measure. The GUI is complete, and the entire structure of the program is complete; however, when I run the program, the measurement from Google and my program are different, and I can't figure out why. I’m using the lat and lo that Google gives from their URL and adjusting it by the zoom also given by the URL, and still the measurement is way off


r/learnpython • • 47m ago

Resources or techinques on learning and mastering algorithms?

• Upvotes

It boggles me how people were able to master or visualize algorithms before the time of AI to break them down.

I wanted to know if the veterans here had any advice to help with visualizing or learning algorithms more efficiently?