JobPrax
Python Comprehensions โ practice questions ยท JobPrax
JobPrax
Practice
Live projects
Guided projects
For colleges
Pricing
Log in
Start free
All Python topics
Python
Comprehensions
List, dict and set comprehensions.
Your progress
0
/ 40
Start the first question
All levels
Basic (26)
Intermediate (7)
Advanced (7)
All
To do
Solved
1
Squares
Basic
2
Filter in a comprehension
Basic
3
Upper-case all
Basic
4
Dict comprehension
Basic
5
Set comprehension
Basic
6
Conditional expression inside
Basic
7
Double with a comprehension
Basic
8
Numbers 1 to n
Basic
9
Only the odds
Basic
10
First letters
Basic
11
Lengths of names
Basic
12
Remove negatives
Basic
13
Clean the spaces
Basic
14
Squares of evens
Basic
15
Name to length dict
Basic
16
Price list dict
Basic
17
Different first letters
Basic
18
Pass or fail list
Basic
19
Multiples of three
Basic
20
Lower-case all
Basic
21
Prices with GST
Basic
22
Names with a letter
Basic
23
Characters of a word
Basic
24
Count the long words
Basic
25
Cubes
Basic
26
Swap keys and values
Basic
27
Nested comprehension: flatten
Intermediate
28
Multiplication grid
Intermediate
29
Filter a dict
Intermediate
30
Transform dict values
Intermediate
31
Pairs with a condition
Intermediate
32
Enumerate in a comprehension
Intermediate
33
Zip into dicts
Intermediate
34
Word lengths index
Advanced
35
Transpose with a comprehension
Advanced
36
Primes with a comprehension
Interview
Advanced
37
Invert a grouping
Advanced
38
Generator expression
Advanced
39
Matrix multiply
Interview
Advanced
40
Clean a messy CSV row
Advanced