« * K Python: While loop
n = 10
while n > 1:
    n = n // 2
    print(n)

It prints:

5
2
1
4 Previous: Dictionaries6 Next: Strings9 Cheat sheet
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup