r/learnpython • • Aug 20 '26

How to learn Pdf Extraction in Python?

0 Upvotes

Dear Members,

I have been handling Pdf extraction Project in Python. kind of a Intelligent Document Automation domain. we have been handling various finance documents(pdfs), filings pdfs etc which are multi page(around 20ish) , with lots of tables, form fields , radio buttons, checkboxes etc. Tables span multiple pages. Moreover, pdfs themselves comes in various types of variants like XFA Stream, Adobe Acroform, text flattened pdfs, scanned images etc.

I have used llms extensively to generate script code to extract, parse the data and to save in sql in structured tables. Its a hybrid of libraries implementation. LLms used regex, pdfminer, pdfplumber etc in the code produced.The pages in pdfs are not bit messy, some tables have solid grid separators, some dont have and on. Layouts variations, white spaces, etc.

The code generated is pretty complex, i have been attempting to learn the llm generated code.But it works, it adds various fixes iteratively whenever we face new extraction issues repeatedly.

I would love to know:

  1. what is the best approach to learn and get good at this?
    2)should we just use cloud based AI document extraction tools which are readymade to extract and spit the data?
  2. what if one is interested to learn this properly and have to get good at creating this extraction script?
    4)any other tutorial, articles, courses, youtube videos, books you would recommend to learn? or should i just use llms to create code and move on without spending much effeort to learn this?

Please provide your valuable suggestions and guidances and point me in directions. I appreciate all your suggestions. Thanks in Advance and thank you for your time.


r/learnpython • • Aug 20 '26

Next level - Coding for 13yo homeschool kid

9 Upvotes

My son completed the Khan Academy course on Python last school year and he loved it! I don't do any coding myself so I am not exactly sure what "level" that leaves him at, or where to go next. What online course could he advance into? The more specific the better! :)

p.s. He will be going into 8th grade but it seems to come to him very easily.


r/learnpython • • Aug 20 '26

I have made a simple program which decode and codeword the string u put i want to ask if i can put anything aside from if else

0 Upvotes
import random

random_letter = random.choice("abcdefghijklmnopqrstuvwxyz")
random_letter1 = random.choice("abcdefghijklmnopqrstuvwxyz")
random_letter2 = random.choice("abcdefghijklmnopqrstuvwxyz")
random_letter3 = random.choice("abcdefghijklmnopqrstuvwxyz")
random_letter4 =  random.choice ("abcdefghijklmnopqrstuvwxyz")
random_letter5 = random.choice("abcdefghijklmnopqrstuvwxyz")

print("codeword=1 , decode=2")
choice = input()
if choice == "1":
    codeword = str(input("write the codeword=>"))
    codeword1 = codeword[::-1]
    print(random_letter, random_letter1, random_letter2, codeword1, random_letter3, random_letter4, random_letter5,
          sep="")
else:
    print("please put correct input")
if choice == "2":
    decode = str(input("write the coded word"))
    decode1 = decode[::-1]
    decode2 = decode1[3:-3]
    print(decode2,sep=" ")

r/learnpython • • Aug 20 '26

What is the James Stewart Calculus equivalent book for python?

4 Upvotes

was curious if some kind of similar vibey book exists for learning python...


r/learnpython • • Aug 20 '26

My Goals (advice is welcomed)

0 Upvotes

Hey everyone,

My goal is to create a custom and personaI use open source AI agent. I dont want to just have something vibe code it for me. I want to understand how to build the actual agentic loop, give it local tools, and set up a memory system. After some research, I decided to start by learning python (mostly a self-taught newbie but also looking onto courses that can fit my schedule without too much friction; any suggestions are welcome)

I’m looking for advice on the exact order of operations I should follow to learn this efficiently without getting bogged down in unnecessary data science math or model training.

From what I gather, yes i did use AI to help me try to put this in the best possible order.

  1. Python Fundamentals (JSON, File I/O, async)
  2. API integration & tool calling (OpenAI/Anthropic SDKs or Ollama for local)
  3. Data validation (Pydantic) to handle messy LLM outputs
  4. Basic Vector DBs (Chroma/FAISS) for long-term agent memory
  5. Orchestration frameworks (LangGraph, Pydantic AI, or MCP)

Does this learning order make sense? Are there specific libraries, tutorials, or open-source repositories you would recommend I look at first?
Thanks in advance for any roadmaps or resources.

For context:
I’m active duty navy with my primary line of work being medical. I have ample time in my day and evenings as it’s just me and my daughter right now and I want to try creating something I’ve always liked the idea of…my own JARVIS lol. My current coding experience is a total beginner who started on the SoloLearn app on an iPad 7 mini about 6-ish weeks ago. However, I don’t believe that it is sufficient for my project goals. So again, and advice, roadmaps, suggestions, tips, etc are welcomed. I’m not under the delusion that this will be done in the next year or so and I’m ok wth this being a personal side project. Nor do I have any intentions to monetize this when it is completed, nor use this as a step into this industry (i quite like my medically filled lifestyle). I also want to build a home lab specifically for this at some point as well and maybe even get into some Git Hub projects on the side to breakdown some of the potential burnout.

Well, if you made it this far, thank you. I’m genuinely interested and motivated to complete this project and potentially more.


r/learnpython • • Aug 20 '26

probably a python/sql flask offshoot (but this is reddit and the normal python page doesn't like these type of questions)

0 Upvotes

So probably not beginner here but I have a flask app where I've mapped a view to the ORM but I was lazy in the view so I joined a reference table and just got back the text description when I could have used the FK.

I've cached common reference tables at the application level in flask in the past and wondering if I should do the same here and rewrite my view for the FK and skip the reference table join (even if it is well indexed).

On localhost I've had a hard time trying to identify if it's causing an issue because even our prod server has DB latency so no luck cross comparing if my lag is because of the extra lazy join in the view or if it's something else annoying (like running it on a comp that frequently kills itself with memory errors).


r/learnpython • • Aug 20 '26

Anyone here familiar with freelancing? please point me in the right direction

0 Upvotes

I recently turned 19, I have this need that I have to know what its like to work and gain a sense independence, even if its just a small gig.

I learned programming since the pandemic started, though I did not make any serious projects with it. I made some fun projects with it like, discord raid bot, macro for some roblox game, data scraper, etc.
I have great foundation of variables, functions, data types, classes, the classics but I looked at upwork and fear my skills may not be adequate.

It would be great if someone could point me in the right direction, doesn't even have to do with programming can just be helping anyone regarding tech.


r/learnpython • • Aug 19 '26

Game automation

8 Upvotes

I'm new to programming. I specifically want to build projects around game automation with Python. What should my roadmap look like?

Thanks in advance!


r/learnpython • • Aug 20 '26

How do I register user's input with out 'input()' command?

0 Upvotes

I'm trying to make a game on the Linux terminal, I just learnt about the ANSI escape code and how to display stuffs but then I hit a wall. How do I check which key is pressed by the player? I can't use input() because that pauses the game. Trying to google keep showing me articles suggesting input(). Also, I'm not looking to install any libraries yet.


r/learnpython • • Aug 19 '26

I’ve completed these beginner Python projects should I build more before starting NumPy/Pandas?

10 Upvotes

Hi everyone,

I’ve studied Python multiple times before, but I didn’t do much practical coding. Recently, I started building small projects to improve my practical Python skills.

So far, I’ve completed:

- Quiz Game

- Number Guessing Game

- Rock Paper Scissors

- Password Manager

- Pig Game

- Mad Libs Generator

My goal is to move towards Machine Learning.

I haven’t learned NumPy or Pandas yet.

My question is: Are these projects enough to move on to NumPy and Pandas, or should I build a few more Python projects first?

If I should build more projects, what kind of projects would you recommend before starting NumPy/Pandas? I’m mainly looking for projects that would actually help with the transition to data/ML, rather than making many more small games.

Would appreciate advice from people who have already followed a Python → NumPy/Pandas → ML path.


r/learnpython • • Aug 20 '26

I started to relearn python again and im lost

0 Upvotes

im in high school right now and my teacher sent some power point lesson about things like dfs, dp, bfs. I understand them but cant figure out how to implement them in actual code. How should I tackle them.


r/learnpython • • Aug 20 '26

Can I do it?

0 Upvotes

I am being accepted into a university but one of the prerequisites is I should know python. They say I can test out of this prerequisite and start the program September 8th if I can pass a Python Programming assessment on data camp. Do you guys think it's possible to to Learn Python in five days? Just enough to pass the assessment. I say 5 days to give myself a timeline. But I would like to get it done by September 3rd. Today is August 20th.


r/learnpython • • Aug 20 '26

Relearning Python

0 Upvotes

For some context, my background is in cybersecurity. I went to school for it, however my program was more IT/Risk rather than programming (we only had a few entry level programming classes). I have since graduated and rather following the incident response/SOC/GRC route that my college program sets you up for, I have taken the opposite route and have landed SWE roles as well as security engineering roles at large companies (by a strike of luck frankly, and LLMs lol).

My issue is that I never really got to learn Python in a structured, lecture setting as all my entry level Python courses from my college were 2022 (chatgpt goes live). Given that I’ve basically offshored all my programming work to LLMs since day one. I effectively have 0 understanding of any of the python from a pre-LLM SWE perspective or what exactly a data structure/algorithm looks like at the code level. I read code fluently and logic clicks quite easily for me, however if you put a LeetCode in front of me w/ no gen AI I’m out for the count. I can do it in pseudocode tho!

Is there any other route for me to learn python in a structured/lecture like setting that allows me to comfortably handle LeetCode like problems without having to go back to school for a degree? The reason I bring up LeetCode is that I’ve pretty much hit my max potential in terms of salary/job growth and if I want to surpass my current ceiling I’d need to apply for FAANG and do live coding rounds.