Python (Coding) Quiz
Python syntax and standard-library usage, from quick scripts to full applications.
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?
- func
- function
- fn
- def
- define
What does <code>len([1,2,3])</code> return?
- [1,2,3]
- 3
- TypeError
- 2
- 4
Which built-in returns immutable ordered sequence?
- frozendict
- tuple
- set
- list
- array
How do you start a single-line comment?
- #
- //
- --
- /*
- ;;
Which type is unordered with unique elements?
- tuple
- set
- frozenlist
- list
- dict
Continue the Python (Coding) track
Python (Coding) trains for the Terminal Academy’s The Readable Language (1991) era.
Related categories
JavaScript (Coding)
Core JavaScript behavior and async patterns, including the quirks that trip up beginners and veterans alike.
Linux
Linux command-line usage, file permissions, process management. The daily admin tasks.
Security
General information security concepts: common threats and standard defenses.
Hardware
Hardware components, how they interact, and basic troubleshooting to keep systems running.
Networking
TCP/IP fundamentals, routing, and protocols. How systems actually talk to each other.