🔥 0
0 XP
Lv.1 Beginner
FAQ
Log In
Home
Python
Getting Started with Python
While Loops
Powers of Two
1
2
3
4
5
6
7
8
9
10
Your task
Lesson: Repeating with While
Exercise 8 · Chapter: While Loops
Optional
+50 XP
Powers of Two
Print powers of 2 from 1 up to 1024.
1 2 4 8 16 32 64 128 256 512 1024
Need a hint?
3 available · costs 5 XP each
Reveal hint (-5 XP)
python
Reset
Run
Visualize
Submit
9
1
Output
Run your code to see the output here.
Previous · Exercise
Guess the Number
Exercise 8 of 10
Next · Exercise
Fix the Accumulator