Welcome back to Day 2 of the 15 Days Python Masterclass! 💻
In this session, we’re taking a huge step forward — learning how to make Python think, decide, and repeat.
You’ll go from simple top-to-bottom scripts to structured programs using three powerful tools:
✅ Control Flow – if, elif, and else
🔁 Loops – while, for, break, and continue
🧩 Functions – def, parameters, return, and scope
And to bring it all together, we’ll build a fun mini-project: 🎮 Guess the Number Game!
We’ll first build it simply, then refactor it using functions to make it clean, reusable, and professional.
By the end of this video, you’ll understand:
How to make your code react to conditions
How to repeat tasks with loops
How to organize logic using functions
How to write cleaner, reusable Python programs
0: 00 – Intro: Welcome to Day 2 of Python in 10 Days
0: 33 – Recap: What We Learned in Day 1
1: 15 – What We’ll Learn Today (Logic, Loops & Functions)
2: 07 – Part 1: Control Flow – Making Decisions with if, elif, and else
3: 01 – Comparison & Logical Operators (==, lt gt, and, or, not)
7: 10 – Example: Movie Ticket Program (if / elif / else)
10: 35 – Part 2: Loops – while and for
11: 10 – While Loop Explained
13: 41 – break and continue in While Loops
19: 31 – For Loop and range() Function
22: 00 – Looping Over Strings and Using len()
25: 19 – Understanding Indexing in Loops
25: 24 – Part 3: Mini Project – Guess the Number Game 🎮
27: 09 – Using random.randint() for Secret Number
30: 49 – Adding Input and Loop Logic
33: 06 – Infinite Loop Logic with while True
34: 00+ – Wrapping Up & Practice Tasks
#PythonCourse #PythonInHindi #PythonForBeginners #PythonTutorial #LearnPython #PythonProjects #GuessTheNumber #CodingForBeginners #PythonLoops #PythonFunctions #ControlFlow #10DayPythonChallenge #PythonMasterclass