← All tools

Software · Free Tool · Unit 2

Python Lists & Loops Quiz — 20 Questions

Five minutes. Twenty questions on lists, dicts, sets, tuples, for/while loops, and function args. You'll get a per-topic breakdown and a recommendation on what to work on next.

Question 1 of 20Lists & Indexing

Given `colors = ['red', 'green', 'blue']`, what does `colors[0]` return?

0/20 answered

Questions

How long does the quiz take?+

About 5 minutes for 20 questions. There is no timer — go at your own pace.

What does this quiz cover that the Python Basics quiz doesn't?+

This is Unit 2 of the path. It tests data collections (lists, sets, tuples, dicts), loop constructs (while, for, range, enumerate), break/continue, and function arguments/return values. If you haven't taken the Python Basics quiz, start there.

Do I need to know Python already?+

You should be comfortable with Python syntax, variables, conditionals, and basic functions before taking this one. If you're at zero, start with the Python Basics quiz first.

Is the quiz free? Do I have to sign up?+

Yes, free and no account required. You can optionally drop an email at the end for a personalized study plan based on your weakest topic.

Can I retake it?+

Yes — refresh the page or hit the retake button. Questions appear in the same order each time so you can track improvement.

Where do the questions come from?+

Questions are original to YorkSims. Topics align with Python for Everybody by Dr. Charles R. Severance (py4e.com), licensed under Creative Commons Attribution 3.0.

Source

Questions are original to YorkSims. Topics align with Python for Everybody by Dr. Charles R. Severance, py4e.com, licensed under Creative Commons Attribution 3.0 Unported.