Vigyata.AI
Is this your channel?

L-6 Decision Making in Python | if, else, elif | Python for AI Beginners

315 views· 33 likes· 28:28· Mar 8, 2026

🛍️ Products Mentioned (1)

In this video, we learn Conditional Statements in Python — one of the most important concepts for beginners. GitHub: https://github.com/codewithaarohi/Python_for_DataScience/tree/main/conditional_statements Till now we have learned about variables, lists, tuples, and dictionaries. But real programs need to make decisions, and that’s where if, else, and elif statements come into play. In this tutorial, you will learn: ✔ What are conditional statements in Python ✔ How the if statement works ✔ Using if-else for decision making ✔ Using elif for multiple conditions ✔ Comparison operators in Python ✔ Logical operators (and, or, not) ✔ Nested if statements ✔ Why conditionals are important in Machine Learning and AI We will also move from Jupyter Notebook to VS Code and start writing Python programs in a professional code editor used by developers and AI engineers. By the end of this video, you will clearly understand decision making in Python and be ready to write smarter programs. 💬 Comment “IF DONE” after completing the practice tasks. 🚀 Python for AI Playlist: This playlist will help beginners learn Python step-by-step so that you are ready for Machine Learning and AI projects. 📸 Follow me on Instagram: @codewithaarohihindi 🔗 https://instagram.com/codewithaarohihindi 📧 You can also reach me at: aarohisingla1987@gmail.com

About This Video

इस वीडियो में मैंने Python में Decision Making (Conditional Statements) बिल्कुल beginner-friendly तरीके से समझाया है—यानी आपका प्रोग्राम पहले condition check करेगा, फिर उसी के बेसिस पर action लेगा। अभी तक हमारा code top-to-bottom line by line execute हो रहा था (variables, list, tuple, dictionary), लेकिन real programs में “अगर ये हुआ तो ये करो, वरना वो करो” वाली logic लगती है। इसी के लिए मैंने if, if-else, और elif को examples के साथ कराया—जैसे age > 18 होने पर voting allow, और grades के basis पर A/B/C या fail print करना। मैंने आज से Jupyter Notebook से VS Code पर shift भी करवाया, क्योंकि VS Code industry-level editor है और AI engineers/developers mostly यही use करते हैं। साथ में मैंने VS Code install करना, Python extension add करना, folder open करके .py file बनाना, और program run करने के दो तरीके (right click से run, या terminal में python filename.py) भी दिखाए। फिर comparison operators (>, <, >=, <=, ==, !=), logical operators (and/or/not), और nested if (एक if के अंदर दूसरा if) भी cover किया। End में मैंने odd-even वाला assignment input() के साथ करवाया और समझाया कि input by default string होता है, इसलिए int() में convert करना जरूरी है—और homework दिया: 3 numbers में largest find करना।

Frequently Asked Questions

🎬 More from Code With Aarohi Hindi