DataDesk
All topics
For loops — practice · DataDesk
DataDesk
How it works
Scenarios
Practice
For trainers
Pricing
Log in
Start free
Python
For loops
Iterate, accumulate, enumerate and zip.
0
/ 20 solved
All levels
Basic (7)
Intermediate (7)
Advanced (6)
All
To do
Solved
1
Sum to n
Basic
2
Even numbers
Basic
3
Multiplication table
Basic
4
Factorial
Basic
5
Count positives
Basic
6
Enumerate with positions
Basic
7
Zip two lists
Basic
8
FizzBuzz
Interview
Intermediate
9
Prime check
Interview
Intermediate
10
Nested loop pattern
Intermediate
11
Digit sum
Intermediate
12
Running maximum
Intermediate
13
Pairs of a list
Intermediate
14
Break on first match
Intermediate
15
Pascal's triangle
Interview
Advanced
16
Simple interest schedule
Advanced
17
Spiral order
Interview
Advanced
18
Compress runs
Interview
Advanced
19
Perfect numbers
Advanced
20
Leaders in a list
Advanced