Python (Coding) Quiz

Python syntax, standard-library usage, and the language idioms that come up in day-to-day scripting and application work.

This category currently has 187 questions in the SERVBG quiz bank. Below are a few sample questions — the full interactive quiz shuffles through the whole set with instant scoring.

Sample questions

Which keyword defines a function in Python?
What does <code>len([1,2,3])</code> return?
Which built-in returns immutable ordered sequence?
How do you start a single-line comment?
Which type is unordered with unique elements?
Start the full quiz ›

Related categories

JavaScript (Coding)
Core JavaScript language behavior, async patterns, and the quirks that trip up both beginners and experienced developers.
186 questions
Linux
Linux command-line usage, file permissions, process management, and the everyday admin tasks every sysadmin and developer needs.
150 questions
Security
General information security concepts — threats, defenses, and the fundamentals every IT professional should know.
148 questions
Hardware
Computer hardware components, how they interact, and the troubleshooting knowledge behind keeping systems running.
145 questions
Networking
TCP/IP fundamentals, routing, protocols, and the networking concepts behind how systems talk to each other.
143 questions