While learning LangGraph, one small Python concept suddenly became much more important to me: TypedDict. At first, I thought it was just “type annotations for dictionaries.” Useful, sure—but nothing special. Then I started thinking about state. When multiple nodes in a workflow keep reading and updating shared data, an unstructured dict becomes chaos very quickly. - Missing keys. - Unexpected values. - Confusing debugging. TypedDict solves that by forcing structure into state. That was my takeaway: - Sometimes tools that look “optional” become essential once systems start growing. #Python #BackendDevelopment #LangGraph #AIEngineering #BuildInPublic
Pratham Das’ Post
More Relevant Posts
-
𝗗𝗮𝘆 𝟮𝟬/𝟯𝟬 This week wasn't about learning new syntax. It was about noticing how Python actually behaves 𝗕𝘂𝗴𝘀 are rarely confusing because they are complex. They are confusing because they don't show up where they actually start 📍 𝗔 𝗹𝗶𝘀𝘁 changes… but the issue was three functions ago 📍 𝗔 𝗳𝘂𝗻𝗰𝘁𝗶𝗼𝗻 runs fine… but your data is already different 📍 𝗧𝘄𝗼 𝘃𝗮𝗿𝗶𝗮𝗯𝗹𝗲𝘀 look the same… but behave differently That’s the tricky part. it might feel simple until you have to 𝗱𝗲𝗯𝘂𝗴 it. Still figuring it out, but now I know what to pay attention to. #Python #30DaysOfCode #LearningInPublic #Day20 #JECRC
To view or add a comment, sign in
-
🚀 Day 5 — DSA with Python Solved the classic “Product of Array Except Self” problem today. This one introduced me to an important concept: 👉 Precomputation (Prefix & Suffix Pattern) Instead of recalculating products again and again, I learned how to: • Store prefix products (left side) • Store suffix products (right side) • Combine them to get the result efficiently 💡 Key Learning: Optimizing brute-force solutions using precomputation can significantly reduce time complexity. ⚡ What challenged me: Understanding how to manage two passes (left → right and right → left) without using extra space initially felt confusing — but breaking it step by step helped. 📈 Growth Insight: DSA is less about memorizing solutions and more about recognizing patterns like this one. On to Day 6 🔥 #DSA #Python #CodingJourney #ProblemSolving #100DaysOfCode
To view or add a comment, sign in
-
-
🐍 One thing I learned from working with real systems: Most issues are not in writing code... they are in understanding failures. When something breaks, I now focus on: → Logs analysis → Reproducing the issue → Identifying root cause Instead of jumping to fix, I try to understand why it failed. This approach has improved my problem-solving a lot. #Python #Debugging #ProductionSupport #Learning
To view or add a comment, sign in
-
Day 5 Consistency is key! 🚀 I’ve been dedicating time to strengthening my Python fundamentals, specifically diving deep into how to work with data sequences. From understanding immutability to mastering indexing and slicing techniques, I’m building a solid foundation to handle data manipulation more effectively. It’s rewarding to see how these concepts translate into cleaner, more efficient. Today I’ve been practicing advanced sequence manipulation in Python. Key takeaways from my study session: Immutability: Understanding why certain data types (like strings) cannot be changed in place. Slicing Syntax: Mastering [start:stop] and how to omit indices for cleaner, faster code. Negative Indexing: Leveraging indexing from the end to make my code more dynamic. There is always something new to learn when it comes to optimizing data extraction! 💡 #PythonProgramming #SoftwareDevelopment #LearningToCode #DataManipulation #CodingTips #Python #CodingJourney #ContinuousLearning #DataHandling #SelfDevelopment #TechSkills
To view or add a comment, sign in
-
-
Day 18: Today i explored how Python handles memory efficiently using Generators 🔹 What I learned and practiced: ✔️ Generators Functions that return an iterator and produce values one at a time. Great for saving memory when working with large datasets. ✔️ yield Keyword Used to produce a value and pause the function execution. It resumes from the same point when called again, unlike a normal return. ✔️ next() Function Used to retrieve the next value from the generator. Automatically stops when no more values are left to produce. ✔️ Created a square_gen() function to generate squares of numbers one by one. Key takeaway: Generators and yield are powerful tools for writing smarter, more efficient code by only processing what we need, when we need it.and also push in github #Python #codegnan #LearningPython
To view or add a comment, sign in
-
-
DAY 53 🚀 – Bit Manipulation + Subsets 🔥 Exploring power sets and pattern expansion 💯 Day 53 / #120DaysOfCode – LeetCode Challenge ✅ Problem Solved: • 78. Subsets 💻 Language: Python 📚 Key Learnings: • Built subsets using iterative expansion technique • Understood relation to power set (2ⁿ combinations) • Learned alternative approach via bit manipulation • Strengthened understanding of combinatorics in coding 💡 Key Insight: Each element doubles the number of subsets → include / exclude 🔥 Progress: Moving deeper into patterns used in recursion & bit manipulation 💪 🔗 LeetCode Profile: https://lnkd.in/gbeMKcv5 #LeetCode #Python #DSA #BitManipulation #Subsets #Backtracking #Consistency #120DaysOfCode
To view or add a comment, sign in
-
-
Most people learn Python by staring at output. I tried something different. 👇 This is what actually happens when Python executes a basic function — step by step, visually. No theory. No slides. Just execution in real time. Still early in my journey — but this is how I'm learning. If you're learning Python too, drop a 👋 below. 🔧 Tool: pythontutor / staying.fun 🐍 Concept: Functions — how they're called, executed & returned #Python #LearningInPublic #DataAnalytics #BBA #100DaysOfCode #PythonBeginners
To view or add a comment, sign in
-
🚀 Day 6/30 – Python Challenge Exploring loops in Python today! 🐍 🔹 Key Concepts: * for loop using range() * while loop execution * Iteration and repetition in programs 💻 Mini Task: Printed numbers from 1 to 5 using both for loop and while loop to understand their working. 🎯 Learning Outcome: Learned how loops help automate repetitive tasks and make code more efficient. Consistency + practice = improvement 📈 #Python #CodingChallenge #LearningJourney #AI #StudentDeveloper #Day6
To view or add a comment, sign in
-
-
Python Clarity Series – Episode 25 Topic: Mutable vs Immutable Function Behavior 📌 Why did my list change after function call? def modify(lst): lst.append(100) a = [1, 2] modify(a) print(a) Output: [1, 2, 100] 👉 Lists are mutable → changes reflect outside Now: def modify(x): x = x + 10 a = 5 modify(a) print(a) Output: 5 👉 Integers are immutable → no change outside 💡 Rule: Mutable → changes persist Immutable → changes don’t This confusion causes logic errors. #PythonBasics #FunctionConcepts #StudentClarity #python #clarity
To view or add a comment, sign in
-
-
🚀 Day 2 of #100DaysOfCode Today I learned how to check whether a number is a Palindrome using Python 🐍 🔍 Problem: A number is called a palindrome if it reads the same forward and backward (like 121, 1331). 💡 Approach: Reverse the number using a loop Compare it with the original number 🐍 Code: num = int(input("Enter a number: ")) original = num reverse = 0 while num > 0: digit = num % 10 reverse = reverse * 10 + digit num = num // 10 if original == reverse: print("Palindrome Number") else: print("Not a Palindrome Number") 📌 Key Learning: Learned how loops and basic logic can solve interesting problems. 💬 Next: Armstrong Number 🔥 #Python #Coding #100DaysOfCode #Learning #CSE
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development