I’ve continued my journey through Python Crash Course (3rd Edition, Eric Matthes) and completed Chapter 5: If Statements. This chapter introduced the power of conditional logic in Python. I practiced: Conditional tests — equality, inequality, numerical comparisons, and Boolean expressions. If statements — simple if, if-else, and if-elif-else chains. Multiple conditions — combining logical checks and omitting the else block when appropriate. Using if statements with lists — checking for special items, ensuring lists aren’t empty, and working with multiple lists. Styling if statements — following clean coding practices for readability and professionalism. Exercises like Alien Colors, Stages of Life, Favorite Fruit, Hello Admin, and Checking Usernames made these concepts practical and engaging. I’ve documented my work and uploaded it to GitHub: https://lnkd.in/dJDD95Vh. Excited to keep building step by step and apply these fundamentals to larger Python projects. Feedback and insights are always welcome! #Python #PythonCrashCourse #Programming #LearningJourney #ConditionalLogic
Mastering Conditional Logic in Python with Python Crash Course
More Relevant Posts
-
Today I focused first on Python fundamentals that are essential for practical coding: • Functions help organize logic into reusable blocks, making programs cleaner and easier to manage. • Modules allow code reuse and structure, whether importing built-in ones like math or creating custom ones. • File Handling connects programs to external data, enabling reading, writing, and updating files. These basics form the foundation for building larger, real-world applications. Later, I continued with DSA problem-solving and worked through: 1. Intersection of Two Arrays II – practicing frequency maps to handle duplicates. 2. Jump Game II – applying greedy strategies to minimize jumps. 3. Triangle – solving a DP problem to find the minimum path sum from top to bottom. 4. Unique Binary Search Trees – learning how Catalan numbers and DP combine to count BSTs. #Python #DSA #Leetcode #DynamicProgramming #Functions #Modules #FileHandling #CodingJourney #LearningEveryday
To view or add a comment, sign in
-
-
I got tired of choosing between Python's simplicity and Rust's speed. So I stopped choosing. I've been building rmath; a high-performance math toolkit for Python with a pure Rust core, bridged through PyO3. Phase 1 just shipped. Here's what that means: 61 functions. Scalar arithmetic to 3D geometry to bit-level integer math. Not just working - standard library grade. Every function has Google-style docs, .pyi type stubs so VS Code treats it like a native library, and 100% test coverage verified against Python's own math module. The part that surprised me most? Writing Rust that feels invisible to the Python developer using it. That's the real engineering challenge; not the performance, the seamlessness. Phase 2 is next. Vectorized operations and statistics. Things are about to get faster. Have you ever built a Python extension in Rust? What broke first? #Python #Rust #PyO3 #SoftwareEngineering #OpenSource
To view or add a comment, sign in
-
-
🐍 Lab #3 is Live — Exploring Basic Operators in Python! Just published the third lab in my Programming Fundamentals series, and this one dives deep into the building blocks every Python programmer must master! 💡 ✅ What's covered in Lab 3: 🔢 Arithmetic Operators — +, -, *, /, //, %, ** 📝 Assignment & Compound Operators — +=, -=, *=, and more ⚖️ Comparison Operators — ==, !=, <, >, <=, >= 🔗 Logical Operators — and, or, not 📌 Operator Precedence — because order matters! 💬 Fun fact: In Python, = is assignment and == is comparison — a tiny difference that causes BIG bugs for beginners! 😄 Whether you're just starting your coding journey or brushing up on the fundamentals, understanding operators is non-negotiable. Every program you'll ever write depends on them! 🎯 Lab includes: → 30 Practice Questions across all operator types → 10 Input-Based real-world exercises → Clear examples with expected outputs Consistency is the key to mastering programming. One lab at a time! 🚀 📌 Follow along as I continue this series — more labs coming soon! #Python #Programming #ProgrammingFundamentals #LearnPython #Lab3 #Operators #Python101 #CodingJourney #TechEducation #UniversityOfLahore #CSStudents #100DaysOfCode
To view or add a comment, sign in
-
Day 8/30 - Taking a Revision Day No new topic today and that's completely intentional. Learning to code isn't just about pushing forward every day. Sometimes the best move is to slow down and let things sink in. So today I'm going back over Days 1–7 and making sure I actually understand what I've covered before moving on: 📌 Day 1 — Setting up Python & printing 📌 Day 2 — Variables & data types 📌 Day 3 — Strings & string methods 📌 Day 4 — Lists in python 📌 Day 5 — String formatting 📌 Day 6 — Type casting: int(), float(), str() 📌 Day 7 — User input & simple programs If you're following along , this is your sign to do the same. Go back. Re-read your notes. Re-run your code. Ask yourself: can I explain this to someone else? Because revision is not a step back. It's how you make sure the foundation is solid before you build higher. Tomorrow I'll be back with Day 9 — and I'll be ready. 💪 #30DaysOfPython #Python #LearnToCode #CodingJourney #WomenInTech
To view or add a comment, sign in
-
Over the past few weeks, I’ve been diving deep into Python and strengthening my programming fundamentals 🚀 Here’s a quick snapshot of what I’ve been working on: Python basics and core syntax Data structures (lists, tuples, sets, dictionaries) Loops and loop control statements Built-in functions for cleaner and efficient code List and dictionary comprehensions for writing more concise and readable logic It’s been a great learning experience moving from understanding concepts to actually applying them in practice. Comprehensions, in particular, have completely changed how I approach writing cleaner code! Still a long way to go, but I’m enjoying the process of building consistency and problem-solving skills every day. Looking forward to exploring more advanced topics and working on real-world projects soon! #Python #LearningJourney #Programming #DataAnalytics #Coding #BeginnerToPro
To view or add a comment, sign in
-
Today, I wrapped up today's learning session by completing several focused modules as part of Dccs102, sharpening my Python fundamentals through hands-on practice. I worked through: - Python-Beta-109-Input-And-Output-In-Python, reinforcing how input is captured and how output is formatted for clarity - Python Beta 109 Input And Output Function In Python, applying print() patterns and basic user interaction flows - Python Beta 110 Python Boolean Operators, practicing logical operators (and, or, not), operator precedence, and building cleaner conditional expressions These activities helped me strengthen core problem-solving habits: thinking in conditions, writing more readable decision logic, and designing simple programs that respond correctly to user input. Boolean operators, in particular, are a small topic with a big impact; they show up everywhere in validation, filtering, and control flow, so getting them right makes code more reliable and easier to maintain. I am enjoying how each session adds another layer of confidence, especially when concepts click through repeated practice and small experiments. If you have been meaning to level up your skills, start with one short lesson today and build momentum. If you are exploring structured learning paths, here is a resource worth checking out: https://lnkd.in/dP8bCcTA #LearningJourney #AlNafi #CareerGrowth #TechSkills #OnlineLearning
To view or add a comment, sign in
-
-
Day 3 of my 100 Days of Code challenge! 💻 Today I focused on practicing conditional logic in Python by building three small projects: • Treasure Island – a text-based adventure game where user choices determine the outcome. • Rollercoaster Ticket Calculator – checks height eligibility and calculates ticket prices based on age and add-ons. • Python Pizza Order Program – calculates the final bill based on pizza size and extra options. These projects helped me practice if/elif/else statements, nested conditionals, and structuring decision-based logic in Python. I’m learning that programming is really about breaking problems down step by step and writing clear logic to solve them. Learning in public and documenting my journey into software engineering. Check out the projects here: https://lnkd.in/g8iMbh-V #100DaysOfCode #Python #SoftwareEngineering #LearningInPublic #CodingJourney
To view or add a comment, sign in
-
Hi guys, I know it’s delayed—now let’s dig into Python again for this post! 💭 Day 3 with Python… something finally clicked. The errors didn’t stop. The confusion didn’t magically disappear. But today… I wrote something that actually worked. Not just print("Hello, World!") Not just fixing errors… 👉 I made decisions in my code. Using if...else, my program could finally think (at least a little 😄) “IF this happens → do this” “ELSE → do something else” And suddenly, coding didn’t feel like typing… It felt like logic coming to life. 💡 That’s when I realized: Programming isn’t about memorizing syntax. It’s about teaching a machine how to think step by step. Every small concept—conditions, loops, functions— They’re not just topics… They’re building blocks of something bigger. Today it’s simple decisions. Tomorrow? Maybe something powerful. ✨ Step by step… line by line… growth is happening. #Python #CodingJourney #Day3 #LearnToCode #Programming #DeveloperLife #LogicBuilding #TechGrowth 🚀
To view or add a comment, sign in
-
🔍 Day 36 of My Problem Solving Journey Today I explored one of the most important concepts in strings — Searching & Finding. In Python, we often use methods like: ✔️ find() → to get the index of a substring ✔️ in → to check existence ✔️ index() → similar to find but throws error if not found But instead of just using built-in functions, I tried to understand the internal logic behind searching 👇 Find the position of a substring without using built-in functions. 🧠 My Approach: Traverse the string Compare characters one by one Return index if match is found Return -1 if not found def my_find(s, sub): for i in r print(my_find("manuuuu", "u")) # Output: 3 ✨ What I learned: How searching works internally Difference between find() and index() Importance of logic building instead of relying on built-ins 📈 Small steps every day = Big growth over time! #Day36 #Python #CodingJourney #ProblemSolving #100DaysOfCode #Learning #Developers #Programming Rudra Sravan kumar
To view or add a comment, sign in
-
-
I stop watching Python tutorial and built this game This time, I work on a simple excersize — Snake Water Gun . This project is based on a real-world problem: how user input is handled, processed, and used to make decisions in a system. Just like real applications take inputs and respond with outputs, this game follows the same logic in a simple way. 🛠 What I Used • Python • Random Module • Conditional Statements • Loops 🎯 What I Learned • How to handle user input effectively • Writing decision-based logic (if-else) • Building interactive programs • Thinking like a problem solver, not just a learner Small projects. Real understanding. 🚀 Learning in public, step by step. 💬 What should I build next? Github repo link:-https://lnkd.in/dZkfHZeG #datascientist #aiml #Python #CodingJourney #LearnInPublic #BeginnerProjects
To view or add a comment, sign in
Explore related topics
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