feat: P-1.30 completed and comments added

This commit is contained in:
baphim
2026-09-30 19:07:29 -04:00
parent 593c95e2c4
commit bbc75eaf32
+8
View File
@@ -18,6 +18,14 @@ def count_steps():
except ValueError:
print('Invalid input: Please only enter integers.')
# set 'step_count' variable to count divisions
step_count = 0
# iterate divisions over 'current_value' until it is lower than 2
while current_value >= 2:
current_value = current_value / 2
# add division step to 'step_count'
step_count += 1
print(step_count)
count_steps()