← Code LabPython0/50 solved · 0%
Control flow · easy

11. while loops

Loop until a condition changes.

Write `count_halvings(n)` returning how many times `n` can be integer-divided by 2 until it reaches 0.
Required in your answer: while