Python quizzes: #loops

7 quizzes about #loops, with an explanation for every answer.

2 For Loops & range() Easy Test how for loops walk through sequences and what range() really produces. Python · Control Flow #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. Python · Control Flow #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. Python · Control Flow #loops#output-prediction 10 questions · ~6 min Not started Start
3 Looping over Dicts Medium Loop over keys, values and items, and avoid the classic dict loop mistakes. Python · Dictionaries & Sets #dict#loops 10 questions · ~6 min Not started Start
1 enumerate, zip & sorted Easy Use the built-ins that replace index counters, parallel loops and hand-written sorting. Python · Pythonic Python #built-ins#loops#sorting 10 questions · ~5 min Not started Start
5 if, switch & Loops Easy Trace Java's if statements, switch and loops and predict what they print. Java · Java Basics #loops#conditions 10 questions · ~5 min Not started Start
5 if, switch & Loops Easy Trace if, switch, for, while and do-while in C, including switch fall-through. C · C Basics #loops#conditions#switch 10 questions · ~5 min Not started Start

Other tags: