Commit 957b955a by BellCodeEditor

save project

parent 0aec26bc
Showing with 1 additions and 1 deletions
...@@ -7,7 +7,7 @@ while True: ...@@ -7,7 +7,7 @@ while True:
mid = (low + high) // 2 mid = (low + high) // 2
guess = num_list[mid] guess = num_list[mid]
if guess == num: if guess == num:
print("Got it!") print("Got it!" + str(mid))
exit() exit()
elif guess < num: elif guess < num:
low = mid + 1 low = mid + 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment