- Executors
-
Learn
Learn Python Runnable examples, NumPy, pandas, and more Learn AI / Machine LearningNeural networks, ML and LLMs from scratch Learn C & C++ Pointers, memory, STL, and modern C++ Learn C#C# basics, OOP, LINQ, async, and .NET exercises Learn MatplotlibLine, bar, scatter and pie charts with live visualizers Learn RustOwnership, traits, error handling, and threads Learn GoSlices, interfaces, goroutines, and channels Python Algorithms Search, sorting, recursion, and visualizers O(n) C & C++ Algorithms Compare algorithms implemented in C and C++ Coding for Kids Learn to code by playing!
- QuizzesNew
- ChallengesNew
- For TeachersNew
- Updates
- Buy me a coffee
Python Loops and If Else Quiz
Practice how Python decides what to run and how many times. These quizzes cover if statements, for and while loops, break and continue, and nested loops.
Beginner
5 quizzes · 50 questions
about 30 minutes
0/5passed
Category exam
20 mixed questions. 80% earns a certificate.
1
If / Elif / Else
Easy
Check how Python picks a branch with if, elif and else.
#conditions#comparisons
10 questions · ~5 min
Not started
Start
2
For Loops & range()
Easy
Test how for loops walk through sequences and what range() really produces.
#loops#range
10 questions · ~5 min
Not started
Start
3
While Loops
Medium
Trace while loops step by step and spot the ones that never stop.
#loops#while
10 questions · ~6 min
Not started
Start
4
break, continue & loop else
Medium
Predict the output when loops are cut short, skipped or finished with else.
#loops#output-prediction
10 questions · ~6 min
Not started
Start
5
Nested Loops & Patterns
Hard
Trace loops inside loops, star patterns and the classic interview traps.
#nested-loops#patterns#interview
10 questions · ~8 min
Not started
Start
No quiz matches. Try another word or tag.