Write an iterative structure that meets the following requirements:
# Stops the iteration when someNumber becomes less than 2 while someNumber>=2: # Repeatedly divides someNumber by 2 someNumber = someNumber / 2 # Increments a variable named count by 1 each time a division takes place count = count + 1
Code should be with the same indentation as I have given
Please see the screenshot of code below
lines starts with # denotes comments
Get Answers For Free
Most questions answered within 1 hours.