PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
s =0
f=100
x=0
p =50
while x!= "cor":
x=input("high, low, or cor ")
if x == "high":
f = p
print(str(p))
elif x == "low":
s=p
print(str(p))
else:
print("i win", str(p))
p=(s+f)/2
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run