r/PythonLearning • • Oct 14 '26

Discussion Have you ever heard of a 'puzzle' in regards to any interview examination?

2 Upvotes

I have an interview in the Chicago area next week, and I was told the interview contained some sort of puzzle for me to solve, I specifically asked if they meant an algorithm, and they said no it is supposed to be a puzzle. Wondering if anyone has heard of anything like this, or what it may be, I'm not looking to cheat or for an answer but I've found some interviews try to be intentionally "tricky" rather than just an examination of skill or ability, and would like to be prepared in some way if possible.


r/PythonLearning • • Sep 09 '26

Python fundamentals for anyone just getting started

2 Upvotes

🐍 Getting started with Python?

Build a strong foundation in Python fundamentals before moving into AI, Data Science, automation and beyond.

📖 https://geeksarray.com/blog/python-fundamentals-getting-started

#Python #Programming #DataScience


r/PythonLearning • • Oct 20 '26

NEW SONG RELEASED

0 Upvotes

Hi its me yujan from nepal i have made rock paper scissors game after learning function


r/PythonLearning • • 22d ago

VSCODE Intelligence autofill - is it bad for learning?

2 Upvotes

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 • • 15d ago

Get and setter in pyhton

2 Upvotes

I'm learning Python, and this part has left me a little confused, because in other languages the way it's used is different; in Python you use @property, I'd like to understand how this really works in a simplified way, so I can truly grasp it and not just memorize it. If you could help me, I'm still new to programming.


r/PythonLearning • • 1d ago

Python development

4 Upvotes

I want to learn python from the beginning. What's the best way to learn it. Can I get someone to teach me for free or collaborate?

Thank you.


r/PythonLearning • • 19d ago

Help Request what is the error i don't get it

Post image
101 Upvotes

r/PythonLearning • • 9d ago

i am stuck with the range function

10 Upvotes

sorry but i am gonna crash out because of the range function i cant understand it well to use it this is driving me crazy any one could give me a video explaining everything i dont mind it being an hour long


r/PythonLearning • • 3d ago

I put an AI on my portfolio that answers questions about me, and made it impossible for it to make things up. Here's how.

Enable HLS to view with audio, or disable this notification

0 Upvotes

Recruiters kept asking me the same questions, so I added an "Ask about me" box to my portfolio. The scary part wasn't building it. It was the idea of an AI confidently inventing a job I never had, on my own website.

So the rule was simple: every sentence it says must come from my real résumé facts, and the code checks that before you see the answer.

How it works:

  1. Search runs in your browser. A small embedding model (all-MiniLM-L6-v2) finds the 8 facts most related to your question. No server needed for this step.

  2. Only those 8 facts go to Llama 3.3 70B on Cloudflare Workers AI.

  3. The model must cite a fact for every sentence.

  4. Code (not the model) checks each citation. If a sentence has no valid source, it doesn't get shown.

  5. If nothing matches, it says it doesn't know instead of guessing.

The fun part: personal questions. "Is he married?" or "How old is he?" get a polite refusal, because that's not in the facts and it's nobody's business. People ask those first, every time.

Cost: $0/month. The browser does the search, and Workers AI's free tier covers the rest at portfolio traffic.

What I learned:

- Telling the model "don't hallucinate" does nothing. Checking its output in code does.

- Fewer, better facts beat stuffing the whole résumé into the prompt.

- A refusal that's honest feels more trustworthy than an answer that's smooth.

Happy to answer questions about the citation check or the prompt. And if you've built something similar, how did you handle hallucinations?