🚀 Day 13 of #100DaysOfCode – Learning How to Debug Like a Developer! Today I continued Angela Yu’s 100 Days of Python course and focused on one of the most important skills in programming: Debugging 🐞➡️✅ 🔹 What I learned today: 🔹How to describe the problem clearly 🔹How to reproduce a bug 🔹“Play computer” and evaluate code line by line 🔹Using print() statements to trace issues 🔹Fixing errors by understanding red underlines 🔹Using a debugger and applying final debugging tips 🔹 Simple Debugging Examples: 1️⃣ Logic Error age = 15 if age > 18: print("Adult") else: print("Teen") ➡️ Bug: Condition excludes age 18 ✅ Fix: Use age >= 18 2️⃣ Type Error number = input("Enter a number: ") print(number + 5) ➡️ Bug: Cannot add string and integer ✅ Fix: number = int(input("Enter a number: ")) print(number + 5) 3️⃣ List Index Error fruits = ["apple", "banana"] print(fruits[2]) ➡️ Bug: Index out of range ✅ Fix: print(fruits[1]) 4️⃣ Dictionary Key Error student = {"name": "Abhishek", "age": 22} print(student["score"]) ➡️ Bug: Key does not exist ✅ Fix: print(student.get("score", "Key not found")) 5️⃣ Using print() to Debug for i in range(1, 5): print("Current value of i:", i) ➡️ Helps track how the loop runs step by step Learning debugging made me realize that errors are not failures—they’re clues. Every bug helps build better problem-solving skills. Excited to keep improving and move on to Day 14! 🚀 #Python #100DaysOfCode #LearningInPublic #CodingJourney
Debugging in Python with Angela Yu's 100 Days Course
More Relevant Posts
-
85% of people who start online programming courses never finish. It's not a motivation problem. It's a design problem. Here's the path most self-taught programmers take: Day 1: "I'll learn Python!" Day 7: Finished a tutorial. Now what? Day 14: Started another tutorial. Feels repetitive. Day 30: Watching videos. Not writing code. Day 60: Still can't build anything real. Here's what a structured 66-day path looks like: Day 1: print("Hello, World") Day 22: Build a data-driven CLI tool Day 44: Create a REST API with database Day 66: Deploy a production system—tested, monitored, live Same 66 days. Completely different outcome. The difference isn't talent. It's not fighting your own brain. Came across https://learntoday.me -- A Python curriculum built on this principle: ✓ One concept per day (60-90 minutes, then stop) ✓ Production context (real patterns, not toy examples) ✓ Clear milestones (so you never ask "what next?") And it's completely free. Day 1 is open without signup. From Day 2, you create an account (just email) so the platform can track your progress and keep you accountable. If you know someone stuck in tutorial hell or trying to break into tech, this might help: https://lnkd.in/g_p5qvrr #Python #LearnProgramming #CareerChange #FreeLearning #EdTech ------------------------------------------------------------------ Personal views. All content is my own.
To view or add a comment, sign in
-
-
For Day 9, we are moving from while loops (which run until a condition changes) to for loops. This is one of the most used tools in a programmer's kit because it allows you to iterate over a specific sequence (like a list of items or a range of numbers) with perfect precision. LinkedIn Caption: Day 9/100 🚀 Day 9/100: Efficiency Unlocked with For Loops! 🔄✨ Yesterday, we looked at while loops for indefinite repetition. Today, we’re mastering the for loop—the go-to tool when you know exactly how many times you want to repeat an action or when you want to "walk" through a list of items. The Concept: A for loop in Python is like a delivery driver. It takes a collection (like a list of tasks) and visits every single item one by one until the job is done. 📦 The Power of range(): Instead of typing out numbers, we use range(). It generates a sequence of numbers automatically. This makes "doing something 100 times" as easy as writing two lines of code. Day 9 Code: The Daily Goal Tracker ✅ Python # Using a for loop to iterate through a list goals = ["Coding", "Reading", "Exercise", "Meditation"] print("--- Morning Routine ---") for task in goals: print(f"Goal started: {task}... Done! ✅") # Using range for a quick count print("\nFinal streak check:") for day in range(1, 10): print(f"Day {day} complete! 🔥") The more I learn about loops, the more I see how Python is designed to do the heavy lifting for us. Why repeat yourself when you can loop it? Who’s still with me on this 100-day sprint? Drop a "LOOP" in the comments if you're leveling up today! 📈 #100DaysOfCode #PythonProgramming #SoftwareDevelopment #ForLoops #CareerGrowth #TechLearning
To view or add a comment, sign in
-
-
🚀 Day 21 of Learning Python Today I explored some core OOP concepts that are extremely important for writing scalable and structured Python code. 🔹 What I learned today: 🔸 📌 Inheritance ▪️ Learned how one class can inherit properties and methods of another class ▪️ Used a parent class (Employee) and a child class (Programmer) ▪️ Understood how child classes can access parent class methods ▪️ Helps reduce code duplication and improves reusability 🔸 📌 Method Reusability ▪️ Accessed parent class methods using child class objects ▪️ Learned how inheritance makes code cleaner and easier to maintain 🔸 📌 Access Modifiers ▪️ Learned about Public, Private, and Protected access concepts in Python ▪️ Understood that by default variables and methods are public ▪️ Used single underscore (_) and double underscore (__) to control access 🔸 📌 Private Variables ▪️ Learned how name mangling works with private variables ▪️ Understood why private variables should not be accessed directly ▪️ Helps protect sensitive data inside a class 🔸 📌 Practical Practice ▪️ Created Employee and Programmer classes ▪️ Accessed inherited methods successfully ▪️ Implemented private variables inside a Student class ▪️ Tested accessibility of public vs private attributes 🔹 Key Learning: ▪️Inheritance and access control are the backbone of Object-Oriented Programming ▪️ These concepts help write secure, reusable, and professional code 🔥 Another solid step in the 30 Days of Python journey 💪 Consistency still strong On to Day 22 🔥 #Python #30DaysOfPython #OOP #Inheritance #AccessModifiers #CodingJourney #LearningEveryDay #Consistency 💻✨
To view or add a comment, sign in
-
-
🚀 If–Else Statements and Decision-Making in Life (Python Learning Journey – Day 11) We make decisions every single day — at work, in learning, and in life. But most of the time, we don’t define them clearly. Python changed that for me. 👉 An if–else statement asks just one thing: Is this condition true or false? That’s it. 👇 And suddenly, decision-making becomes simple: • If the condition is true → take action • Else → choose the alternative • No assumptions • No confusion Python doesn’t guess. It doesn’t rely on emotions. It follows logic. And that’s the lesson. When conditions are clear, decisions become easier. When conditions are vague, outcomes become messy — in code and in life. Learning if–else taught me to pause and ask: 👉 What exactly am I deciding on? 👉 What happens if this fails? 👉 What’s my fallback? This mindset goes beyond programming. It improves clarity, reduces overthinking, and builds confidence. A decision isn’t complex. It’s just a condition waiting to be defined. 👇 Soft CTA How do you usually make decisions — clearly defined or on instinct? Python Developers Python Visual Studio Code #PythonLearning #Day11 #Python #DeveloperJourney #CodingMindset
To view or add a comment, sign in
-
-
I wasted months learning Python the wrong way. Don’t repeat this. When I started Python, I thought I was “learning”. In reality, I was just feeling busy. Here are mistakes I made: • Watching tutorials like reels One video after another. Felt smart. Asked to write a loop alone? Brain.exe stopped working. Python is not Netflix. You don’t learn by watching. • Saving code instead of writing it “I’ll revise later” = biggest lie. Saved notebooks, GitHub repos, screenshots. Never opened them again. If you don’t type it, you don’t know it. • Copy-paste culture Stack Overflow became my best friend. Code ran. Happiness. Next question changed a little -> panic 😐 If you can’t explain your code in simple words, it’s not your code. • Skipping basics because they look easy Loops, functions, conditionals felt boring. Then one day even a simple problem took 2 hours 🧠 • Comparing with LinkedIn geniuses Someone built an AI app in 2 weeks. I struggled with lists. Comparison killed motivation, not lack of talent. Start small. Stay consistent 🚀 #Python #LearningInPublic #StudentLife #CodingJourney #Programming #Developers
To view or add a comment, sign in
-
I used to fear errors. Now I know they made me smarter. When I started learning Python, debugging felt like punishment. Red lines, strange messages, code not running at all. I thought good programmers never see errors. I was wrong. Every error forced me to stop and think. Instead of panicking, I started doing simple things: • Reading the error line by line • Printing values to see what is actually happening • Running the code step by step • Asking one question: where did my logic break? Debugging taught me patience. It’s like when your phone is not charging. You don’t buy a new phone first. You check the cable, the socket, then the switch. Debugging works the same way. Slow checks save time. Over time, I noticed a change. I was not just fixing Python code. I was thinking more clearly. Now when I face a problem: • I break it into smaller parts • I test one thing at a time • I don’t fear being wrong Debugging didn’t improve my syntax. It improved my thinking 🧠 #Python #Debugging #ProblemSolving #CodingJourney #StudentsInTech #LearningToCode #SoftwareEngineering #Developers #Programming
To view or add a comment, sign in
-
Most people learn coding the wrong way. They start with tools. They jump to frameworks. They rush into projects. But they forget one thing Thinking like a programmer comes before writing code. As a Computer Science student, I’ve learned that real growth happens when you: • Break problems into smaller parts • Understand why code works, not just how • Stay consistent even when progress feels slow I’m currently focusing on Python, problem-solving, and building strong fundamentals not to rush results, but to build skills that actually last. If you’re learning to code too: 🔹 Don’t compare your Day 10 to someone else’s Year 2 🔹 Master basics before chasing trends 🔹 Progress > perfection I’ll be sharing what I learn along the way wins, mistakes, and lessons. If you’re on a similar journey, let’s connect and grow together. #ComputerScience #Python #LearningInPublic #TechJourney #Programming #StudentLife #FutureDeveloper
To view or add a comment, sign in
-
How to Crush Your Python Learning Goals in 2026 Whether you’re just getting started with Python or you’ve been coding for a while, building a structured roadmap can make all the difference. Instead of jumping randomly between tutorials, here’s a practical way to level up your skills, step-by-step Define Your WHY Before writing a single line of code, ask yourself: Why am I learning Python? Is it to build web apps, land a data job, automate tasks, or just explore programming? A clear WHY fuels consistency and motivation. Create a Learning Roadmap Map out your core milestones: • Fundamentals & syntax • Intermediate concepts (OOP, modules) • Hands-on projects (Web, Automation, Data) • Community contribution or portfolio pieces This blueprint helps you track progress and avoid information overload. Execute & Track Progress Consistency beats intensity. • Set weekly coding targets • Build projects that solve real problems • Share your work on GitHub and LinkedIn This not only sharpens your skills, it also makes your growth visible. Pro Tip: Join Python communities and Slack groups to stay accountable and get help when you’re stuck. #Python #Coding #LearnToCode #DevCommunity #SkillBuilding #Programming #TechCareers
To view or add a comment, sign in
-
-
Tired of getting lost in complex tutorials without clear instructions? Frustrated by learning theoretical concepts that don't translate to solving real-world problems? Worried that the information you're getting isn't up-to-date in the fast-evolving tech world? You're not alone. Are You Ready to Transform Your Career with Python and Stand Out in the Competitive Tech Industry? 🎯 If you want to master Python from scratch, boost your programming skills, and secure high-paying job opportunities, “The Python Bible for Beginners” is the guide you've been waiting for. ⚙️ This comprehensive book eliminates these hurdles by offering a clear, step-by-step approach, ensuring you won't just learn Python—you'll master it. Updated and revised as of June 2024, every tutorial is current, accurate, and ready to make you a sought-after programming professional. Friendly, Jargon-Free Language: Designed for complete beginners, with easy-to-understand explanations. Step-by-Step Guidance: Learn from the basics and progress to advanced topics with confidence. All-In-One Solution: Structured like a true university course, covering basics to advanced techniques, including powerful libraries such as TensorFlow, NumPy, Sklearn, Keras, Matplotlib, and more. Practical Learning: Code snippets, hands-on exercises, and real-world examples to solidify your understanding and skills. Updated Content (June 2024): Fully revised and updated to ensure accuracy and relevance in today's tech landscape. #PythonForBeginners #MasterIn7Days
To view or add a comment, sign in
-
Explore related topics
- Problem-Solving Skills in System Debugging
- Debugging Tips for Software Engineers
- Advanced Debugging Techniques for Senior Developers
- Why Debugging Skills Matter More Than Copy-Pasting Code
- Tips for Testing and Debugging
- Steps to Follow in the Python Developer Roadmap
- Programming in Python
- Python Learning Roadmap for Beginners
- Essential Python Concepts to Learn
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