Python Practice Test
✕
📝 Python Practice Tests
Control Flow: Conditional Statements
Control Flow: Loops
Core Syntax
Data Structures: Dictionaries and Sets
Data Types and Variables
Exception Handling
File Input and Output
Functions and Scope
Modules and Packages
Object-Oriented Programming Basics
Operators and Expressions
Python
List Comprehensions and Generators
String Manipulation and Formatting
📖 Python Study Guides
Python
Python Practice Test 2026 FREE - Python Questions - Python Exam Prep
🎥 Python Videos
Python Programming Practice Test Video Answers
☰
Python Practice Test
▶
Python Python List Comprehensions and Generators
Free · Instant Results
What is the output of `[x**2 for x in range(4)]`?
A
[0, 1, 4, 9]
B
[1, 4, 9, 16]
C
[0, 1, 2, 3]
D
[1, 2, 3, 4]
▶ Start Practice Test