Versatile high-level programming language. Play Python Programming Language trivia solo to sharpen your knowledge, or challenge a friend head-to-head in Trivia Tango — every question comes with an explanation so you learn as you play. Questions span every level, from easy warm-ups to expert-level stumpers, so there's a real challenge here however much you already know.
A mix of easy, medium and hard — questions run from warm-up to expert, so there's a real challenge at every level. Think you know the answers? Play to find out.
Created by Guido van Rossum in 1991, this language was named after a British comedy troupe, not a snake.
Difficulty: EasyThis compact syntax creates a new sequence by applying an expression to each item, all within square brackets.
Difficulty: MediumThis mechanism allows a class to derive from two or more parents, creating a diamond problem requiring specific resolution ordering.
Difficulty: HardProgrammers use this character to write notes that the interpreter completely ignores when running the code.
Difficulty: EasyThis block of code attempts an operation and catches specific problems that might occur during execution.
Difficulty: MediumThis algorithm determines the order in which base classes are searched when resolving method calls in complex hierarchies.
Difficulty: HardThis built-in function displays output to the console, and it's typically the first thing beginners learn to use.
Difficulty: EasyThis clause runs its code regardless of whether an exception occurred, commonly used for cleanup operations.
Difficulty: Medium