🎯In this video, you’ll learn how to calculate the sum of even and odd numbers from 1 to N using a `while` loop in Python.
Whether you're a beginner or revising your basics, this is a must-watch for mastering Python loops and conditions!
📌 What You'll Learn:
- How to use `while` loops effectively in Python
- Logic to separate and sum even and odd numbers
- Real-time coding explanation for better understanding
💻 Example covered:**
Input: `n = 5
Output:
👉 Sum of Even Numbers: 6
👉 Sum of Odd Numbers: 9