Skip to content

Instantly share code, notes, and snippets.

@mmasztalerczuk
Created February 15, 2020 14:29
Show Gist options
  • Save mmasztalerczuk/eed6a011defe7e7bfe9f2339d8e3463a to your computer and use it in GitHub Desktop.
Save mmasztalerczuk/eed6a011defe7e7bfe9f2339d8e3463a to your computer and use it in GitHub Desktop.
s = 0
e = 100
while True:
print(f"Czy to jest {(s+e)//2}")
cmd = input()
if cmd == "M":
e = (s+e)//2
elif cmd == "W":
s = (s+e)//2
else:
break
@mmasztalerczuk
Copy link
Author

asdasd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment