r/learnpython • • May 21 '26

nobody told me requests.get() stops working at scale

3 Upvotes

so i hit about 200 pages no problem. requests.get() just worked. felt like a genius

then i tried scaling to 8,000 pages across 12 sites and everything fell apart in maybe 3 hours. 403s everywhere. captchas on sites that didnt even have captchas last week?? half returning blank html because turns out they render everything in javascript now

spent way too long convinced it was my headers. rewrote my user-agent rotation 4 times. even bought rotating proxies for $35/mo thinking thatd fix it. it did not

i knew requests.get() was just raw http with no browser behind it but stubbornness is my only engineering skill so i kept hacking around it

now im looking at headless browser setups for web scraping and the whole landscape is.. confusing. does anyone actually run this at scale without losing their mind??


r/learnpython • • Jul 19 '26

Help a beginner...Is my study plan missing something

0 Upvotes

I’m honestly pretty bad at programming, but I decided to use this summer break to start learning from scratch. I picked Python as my starting point and I'm currently just hammering down the absolute basics.

Here is my current strategy:

  1. Watch a YouTube lecture on a concept.

  2. Ask AI for practice questions (Easy -> Medium -> Hard).

  3. Solve them, review my mistakes, and re-practice until it clicks.

Someone told me to start using LeetCode, but honestly, even their "Easy" questions start with arrays/data structures, and I haven't even reached that topic yet. I plan to jump on it once I get there.

Seniors/experienced devs: Am I on the right track? Is there anything crucial I should add to this plan to actually get good, or should I stick to what I'm doing?


r/learnpython • • Aug 28 '24

Learning phython

0 Upvotes

I want to start learning Python but really worried to do it online. My question is, did you all learn it online or you attended physical classes?


r/learnpython • • Jul 31 '24

Hey everyone I just started learning python. I want to learn it because I'm interested into AI and data science stuff.

0 Upvotes

I'm currently following a basic to advance 100 days python playlist from code with Harry.

Is it good to go or shall I learn something else and learn it(Python thing ) in the way ?


r/learnpython • • Feb 25 '25

How can I code every project using OOP?

0 Upvotes

Hi.

In the past, I have studied Python for 500+ hours and learnt 50 main/key topics exactly. One was object oriented programming. I have a file that named OOP.ipynb with 173 cells where I've noted everything about OOP, while I was watching popular YouTube channels like Freecodecamp, Corey Schafer, Python Simplified and etc...

I know what OOP is and how it works.

But this is still isn't enough for me to code a project from scratch using OOP. Maybe you watched, there is a video in Freecodecamp YT channel that the tutor coded a Blackjack game using OOP. It was awesome but so complicated. Also Angela Yu's Coffee Machine project is one of the best example for OOP in her 100 days of code course. There are 2 more excellent examples that I want to share. Python Simplified's OOP with Pygame and Ork Slayer Gamedev's Text-Based Battle OOP. In some projects, class examples are really simple. There is a simple init and have a few functions. But in some projects class structures are really complex.

When I start coding a project using OOP, some questions come to my mind:

  1. Which data must I convert into objects in init? In Blackjack example, tutor had converted each card into objects.

  2. How many classes must I create? In coffee machine example, there was 4 py file and 4 classes.

Could you please give me some advices? How can I reach a level where I am able to code every project using OOP easily?

Thanks.


r/learnpython • • Oct 05 '24

Does linux support all python libraries?

0 Upvotes

Does linux support all python libraries?


r/learnpython • • Jul 15 '23

teaching myself python starting from zero to online freelance work?

0 Upvotes

Is it feasible to teach myself Python and then go immediately to taking freelance work from sites like Upwork? And if so how long would it take to at least start taking lowball offers? I understand that it's different for everyone, but in things I'm an expert in I'm capable of giving a range to such a question to give someone an idea. Thanks in advance.


r/learnpython • • Sep 12 '22

Python pronounciation

3 Upvotes

How do you pronounce Python?


r/learnpython • • Mar 24 '24

I'm in distress... I don't know what tools are mandatory and what tools can be skipped

3 Upvotes

I am taking a beginner course in python and maaaaan... they ask me to get visual code, then jupyter, then another mentions powershell and atom all the while ending with the notion that I am allowed to choose for myself. But they are not really that clear about that.

Like why put me through the trouble of getting powershell and atom and then after 2 hours go over to VisualCode and more or less say that the VS is far superior.. am I missing something?

Do I need all these tools? Why do I need powershell and atom if I have Visual Code?


r/learnpython • • Mar 24 '25

i wanna learn python i dont know where to start any advice

0 Upvotes

very new just did hello world but no idea where to go from here


r/learnpython • • Nov 14 '21

URGENT: need to learn python ASAP

0 Upvotes

Hi all. I used to know some python a couple years ago and don’t remember too much of it. I stupidly volunteered to help a cute girl with coding for her class and now she’s needing help with it. Can someone teach me how to do good python stuff in the next 2 days. I understand for loops and while loops and printing strings and Booleans. Are there any other major things I need to know??? Thank you in advance. I just don’t wanna look stupid in front of her cuz I really like her and want to be helpful.


r/learnpython • • Sep 13 '24

Freshman in college still no clue about python

0 Upvotes

I am a freshman at Georgia State with a CS major. I have been paying attention in class but always feel lagging. Everyone knows at least the basics of Python except me. What are the best resources to learn Python from scratch and be in the top 10% of the class?


r/learnpython • • Jan 30 '26

How hard is it to pick up python if I already know C#, C++?

2 Upvotes

Just like the title says. I can understand the syntax pretty well but I just mean being able to actually just being able to code fluently while leaning on docs here and there. Is there anything I should keep in mind? Or should i just translate my C++ code and use AI to explain it.


r/learnpython • • Jan 08 '26

How on earth is this incorrect.

0 Upvotes

Im completely new to learning programming and right now im working on the def function. For whatever reason i keep getting a syntax error when i test the function. Im confused what could be wrong ive typed it exactly as follows…

def add_one(num):

return num + 1

add_one(7)

(edit): yes the return is properly indented!

(edit 2): The error is “SyntaxError: invalid syntax”


r/learnpython • • Jul 03 '26

I'm a broke 22 Year old trying to become a backend dev

1 Upvotes

I'm a broke 22 Year old trying to become a backend dev

As you see in the title I'm broke, getting old and running out of time to make something of my self. I'm so unmotivated it sucks like I know I'm lazy but every time I try to do something about i only last a day and fall back into my old ways I seriously don't know what to do does anyone have any advice?


r/learnpython • • May 28 '26

How to start to learn python for Competitive Programming (ABSOLUTE BEGINNER)

0 Upvotes

Hey guys how do I start learning python? How do I get better at the Comp-Proge side of python? How long would it take me if I'm seriously committed?


r/learnpython • • Dec 14 '25

GUYS I FEEL STUCK

1 Upvotes

im a beginner learnt basic logic and functions I feel lost. I tried tkinter it was alien to me please guide me


r/learnpython • • Jun 14 '24

I found out that random generator are not truly random, they rely on a seed and equation if that is so, how sets gets ordered random?

1 Upvotes

no matter who i ask they always say, that sets are random i did a quick google search to find out this:

order in a set, elements are not arranged in a random order but in ascending order of the hash value modulo the length of the list. is it true? if that is so why not give them index functionality too?


r/learnpython • • Jul 20 '24

Will my code still be useable in 2 years??

1 Upvotes

Hi everyone. I have stored away some python code that I wrote after learning a great deal about python. Iam very proud of my algorithms and I actually used them pretty often but I may have to step away for about 2 years to pursue some other things. Does python code become quickly outdated and unusable if not maintained and updated or will I pretty much be able to pick up where I left off? Basically I'm asking how quickly does the language evolve and the syntax change through time?? Any advice is appreciated.


r/learnpython • • Oct 15 '24

Does anyone do backend as a hobby?

0 Upvotes

Like, srsly?


r/learnpython • • Jul 16 '25

How do I open python

0 Upvotes

I'm a beginner learning Python and I'm a bit confused about how to open and start using Python on my computer. I’ve heard there are different ways to open Python, like using an IDE or a terminal, but I don’t fully understand how to do it properly. Could you explain step-by-step how I can open Python in different environments such as IDLE, command prompt (Windows), or terminal (Mac/Linux)? Also, what are the differences between opening Python through an IDE like PyCharm or VS Code versus directly through the command line? Lastly, how do I know if Python is already installed on my system, and what should I do if it isn’t? Please explain in a way that’s easy to follow.


r/learnpython • • Dec 04 '25

how did you guys learn python?

1 Upvotes

watching tutorial videos /lectures

and making small project/solving problems

is this all?? (I don't know anything)

ps. any site you guys can recommend? thx


r/learnpython • • Jun 26 '26

How to start learning Python for AI?

0 Upvotes

I want to learn Python for AI automation, AI workflows, and ML, but I'm unsure how much Python I actually need before I start building projects. I'm also confused about which resources are worth following. What learning path would you recommend?

Edit: I use c++ for DSA and I'm pretty comfortable with that. So, won't be using python for DSA


r/learnpython • • Aug 14 '25

Learn a programming language

1 Upvotes

Hi everyone I have no idea how programming works. But i have always wanted to learn a programming language. Would like some roadmap and suggestions to learn a programming language and which language to learn as a start.