r/learnpython 12h ago

Is it okay to do DSA in python for my placements

1 Upvotes

I am an AIML student currently in my 3rd year and want to know that for my placement preparation should I proceed with doing DSA in python or should I change my language to Java/C++


r/learnpython 5h ago

Client wants 40k emails from a directory. Each one requires a click. What do I do?

0 Upvotes

CLint need a list of 40,000+ members from the ACR directory. Need Name, City, State, Zip, Specialty, Email, and Phone.
The directory/search results give me some of this information, but email, phone, address, Member Since, etc. appear to be available only on the individual member profile.

So I'm trying to figure out the best way to approach this in Python.

If I literally open/request every profile, that's 43k+ profile requests, which obviously makes me concerned about rate limits, blocking, or getting the account/IP banned.

I'm considering Python requests/BeautifulSoup or Playwright, but before attempting something this large I'd like some advice.


r/learnpython 8h ago

Hi everyone, I could really use some career transition advice.

3 Upvotes

To give you some background, I have a BCA degree and previously worked as a Junior Technical Support Engineer for 2.5 years, followed by about 2.5 years as a US IT Recruiter. I recently had to take a career break due to a family medical emergency, but I am now ready to get back into the tech industry. I’ve been researching different fields, but the rapid advancements in AI have left me a bit overwhelmed about which direction to take. I’m looking for a resilient, future-proof career path. Initially, I looked into Java, but it seems like a massive time investment to master right now. I am currently leaning toward learning Python and moving into Data Science, or potentially just diving straight into a Data Science roadmap. For those already in the industry, do you think this is a safe, long-term choice? I would also deeply appreciate any recommendations for courses or structured learning paths!


r/learnpython 4h ago

DAY 06 OF LEARNING PYTHON STUCK IN THE MAZE PROBLEM

0 Upvotes

Day 6/100: Maze solver in Reeborg's World. Solved 3/4 test cases but hit an infinite loop on the 4th. Frustrated but didn't quit. Will retry tomorrow or move forward. Feeling the difficulty ramp but pushing through. It took me 5 hours literally will show up tomorrow to push through again any suggestions will be appreciated


r/learnpython 2h ago

Building My Own Postman Clone in Python

1 Upvotes

My first Python project: Postman Clone

I’ve been working on a small project called postman_clone to practice Python and learn more about how APIs and HTTP requests actually work.

I didn’t start with all these features at once. I started with the basics, then kept adding things as I learned. I worked with functions, conditions, user input, JSON, error handling, and HTTP requests, and little by little the project started becoming more complete.

Right now, my project can handle:

  • GET
  • POST
  • PUT
  • DELETE
  • JSON request bodies
  • An optional header
  • An optional query parameter
  • Basic error handling for requests and JSON

There’s still a lot I want to improve. I want to make the code cleaner, add support for multiple headers and query parameters, improve the error handling, and make the whole thing feel more like an actual API testing tool.

I’m still learning, so I’m posting the code here to get some feedback from people who have more experience with Python.

If you see something I could improve, or if there’s something you think I should add next, I’d really appreciate the advice 🙌

This is still a work in progress, but I’m happy with how far I’ve gotten so far.


r/learnpython 10h ago

How do I learn Python well enough to automate the boring half of my job?

64 Upvotes

Operations analyst here. About a third of my week is just moving numbers between two systems that apparently will never talk to each other.

So yeah, I want to automate it.

I’m not trying to become a developer or switch careers at 38. I just want the four hour Tuesday task to become a script I run and then forget about.

I’ve got Boot dev, DataCamp and Automate the Boring Stuff on my list. But I’m having trouble figuring out which one actually makes sense for someone who wants to automate work tasks instead of learn coding for a new career.

What would you start with?


r/learnpython 14h ago

Bioinformatics graduate who can understand Python code but can’t write it from scratch — how should I actually learn?

0 Upvotes

I have a Master’s in Data Science with a previous background in wet-lab biology. My programming experience mainly came through my MSc, so I don’t have a traditional CS background.
At this point, I can usually **understand Python code when I see it**, explain what it is doing, and modify parts of it. But if you give me a problem and ask me to write the solution from scratch, I struggle — and I often rely on ChatGPT to get started.
I’m trying to figure out what the right way to overcome this is.
Should I:
go back and systematically learn Python/CS fundamentals through tutorials first, then start projects?
or keep building bioinformatics projects and use ChatGPT as a tutor/coding assistant while gradually becoming more independent?
I find learning programming purely through tutorials quite difficult and passive, especially because I’ve never studied CS formally.
**For people who came into bioinformatics from biology rather than CS: how did you actually learn to code independently? What should I be able to do before I consider myself “good enough” at Python for a junior bioinformatics role?**


r/learnpython 18h ago

Looking for help or a resolution

0 Upvotes

so I wrote a python program years ago in school, and I was wondering if anyone on here could take a look at it for me. I'd like to improve it so that it brings you back to the start or the previous choice with an option to return to the start, but I don't remember anything because it's been years since I touched python. Feel free to play the game and get a feel for it.

Anyone have a fix or advice to fix it? I'll link the code here so that y'all can try it out yourselves (eventually I want to port this game to Nintendo DS).


r/learnpython 4h ago

learn python

0 Upvotes

i am a begginer in python i wanna do some projects what u guess for me ?


r/learnpython 18h ago

Repositories to kickstart Python Automation

17 Upvotes

Hi. Anyone who can share any repositories online or resources that I can learn python? I have a background on it (predictive analysis in OR) but I'm more interesting on applying in automating my tasks at work.


r/learnpython 3h ago

Project proposal

0 Upvotes
I am learning Python for ML (machine learning). What kind of projects would you recommend to reinforce my knowledge?

r/learnpython 22h ago

Pyperclip not pasting content from clipboard

5 Upvotes

I am working through Automate the Boring Stuff on chapter 12. I have written the Clipboard Recorded program as instructed from the book, but the pyperclip.paste() function does not populate content from the clipboard. When I run the application, it only shows content that I put into the pyperclip.copy() function from another terminal, but nothing from using CTRL+C or right-click and choosing copy.

import pyperclip, time
pyperclip.set_clipboard('xclip')
print('Recording clipboard... (Ctrl-C to stop)')
previous_content = ''
try:
       while True:
               content = pyperclip.paste()     # Get clipboard contents.

               if content != previous_content:
                       # If it's different from the previous, print it:
                       print(content)
                       previous_content = content

               time.sleep(0.01)        # Pause to avoid hogging the CPU.
except KeyboardInterrupt:
       pass

I added the pyperclip.set_clipboard('xclip') line myself as an attempt to get this to work, but it still doesn't.

When I run something like the following from the interpreter, I get similar results. The paste function will output any string that was passed to the copy function, but it will not output anything from using CTRL+C.

Xclip is installed. I'm running Debian 13 with KDE Plasma 6.3.6.

Edit to add: I can call pyperclip.copy() from the interpreter and then paste using CTRL-V to another application. I have also tried using xsel instead with similar results.

Final Edit: I resolved it. Apparently I'm using Wayland and needed to install wl-clipboard. I need to study up on my different display servers for Linux.

Thank you.


r/learnpython 8h ago

any good books on asyncio for Python >=3.11 ?

2 Upvotes

"Python Concurrency with asyncio" by Matthew Fowler is gold, because it explains not only "what" but also "why" and asyncio evolution over years, so with this knowledge I can look at any tutorial or AI slop and immediately determine if it's worth looking at or still relies on manual loop management etc. However, it was published in 2022 in times of Python 3.10 and no 2nd edition in sight. asyncio has evolved even further since then, with TaskGroups, timeouts, except* etc. Anything recent on circa same depth level as that book?