Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ans = str()
- min = 1
- max = 100
- while ans != '=':
- n = int((min+max)/2)
- print(n)
- ans = input()
- if ans == '<':
- max = n
- if ans == '>':
- min = n
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement