While loops are used to perform repetitive operations until a condition is met
The while loop expression written in Python, where comments are used to explain each action is as follows:
#The loops begins here
while userNum >=1:
#This prints the number
print(userNum)
#This divides the number by 2
userNum =int(userNum/2)
Read more about while loop at:
https://brainly.com/question/19344465