Skip to content

sunilkumarreddypunnati/python-conditional-statements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚖️ Python Conditional Statements Practice Tasks

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 Progression: Beginner ➡️ Advanced

🧪 Task File 📄 Description 📷 Output Screenshot
task 1.py ✅ Check if a person is eligible to vote (age ≥ 18) Task 1
task 2.py 🔢 Check if a number is even or odd Task 2
task 3.py 🏆 Find the largest of three numbers Task 3
task 4.py 🎓 Assign student grades (A, B, C, Fail) Task 4
task 5.py 💳 Perform an ATM withdrawal check Task 5
task 6.py 📅 Check if a year is a leap year Task 6
task 7.py 🛍️ Apply shopping discounts (20%, 10%, or none) Task 7

✅ What I Practiced

  • 🧠 Basic if conditions for eligibility and number checks
  • 🔁 if-else for two-way decisions (even/odd, pass/fail)
  • 🧮 if-elif-else for multi-level logic (grades, discounts)
  • 🔍 Nested conditions for complex checks (leap year)
  • 💡 Real-world scenarios like ATM systems and shopping logic

👨‍💻 About Me

📊 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.

🔗 LinkedIn
🔗 GitHub

🙌 If you’re a recruiter, mentor, or fellow learner — let’s connect!
⭐ Star this repo if you found it helpful or inspiring.


ℹ️ Summary

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.

About

Beginner to advanced practice tasks and explanations on Python conditional statements (if, if-else, if-elif-else, nested conditions, logical operators, and real-world examples).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages