Last active
September 19, 2016 15:31
-
-
Save bennuttall/950151f56cc2c353e2a325e76ea86b9d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| n = 1.0 # start at n=1 | |
| i = 0 # counter | |
| while n > 0: | |
| i += 1 # increment counter | |
| n /= 2 # half n on every iteration | |
| print(i) # will this line ever be reached? if so, what will it print? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment