This repository is a hands-on guide to mastering conditional logic in Python,
featuring tasks that progress from basic checks to real-world decision systems.
It’s ideal for learners who want to build strong logic and problem-solving skills through practical coding.
| 🧪 Task File | 📄 Description | 📷 Output Screenshot |
|---|---|---|
| task 1.py | ✅ Check if a person is eligible to vote (age ≥ 18) | ![]() |
| task 2.py | 🔢 Check if a number is even or odd | ![]() |
| task 3.py | 🏆 Find the largest of three numbers | ![]() |
| task 4.py | 🎓 Assign student grades (A, B, C, Fail) | ![]() |
| task 5.py | 💳 Perform an ATM withdrawal check | ![]() |
| task 6.py | 📅 Check if a year is a leap year | ![]() |
| task 7.py | 🛍️ Apply shopping discounts (20%, 10%, or none) | ![]() |
- 🧠 Basic
ifconditions for eligibility and number checks - 🔁
if-elsefor two-way decisions (even/odd, pass/fail) - 🧮
if-elif-elsefor multi-level logic (grades, discounts) - 🔍 Nested conditions for complex checks (leap year)
- 💡 Real-world scenarios like ATM systems and shopping logic
📊 Sunil Kumar Reddy Punnati
🎓 MCA Graduate | 💼 Data Analyst Intern | 📍 Tirupati, India
I’m passionate about Python basics, data analysis, and creating impactful dashboards.
This repo is part of my journey to become an industry-ready data analyst or software developer.
I believe in learning by doing, and this project reflects my commitment to mastering logic and clean coding.
🙌 If you’re a recruiter, mentor, or fellow learner — let’s connect!
⭐ Star this repo if you found it helpful or inspiring.
A curated set of Python tasks demonstrating conditional statements from beginner to advanced levels.
Each task includes code, output screenshots, and practical logic examples to help learners build confidence.






