Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print()
- ans = 0
- target = 0.1
- for i in range(50):
- calc = (0.5)**i
- if ans calc < target:
- ans = calc
- print(f"i = {i}, result = {ans}; ", end="\n")
- print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement