We have that the Print Program to perform the functions 'specifying the lower and upper bounds; and by answering yes/no questions" given as
print('Number is: ' + str(mid))
break
ans = input('Is ' + str(mid) + ' greater than your number? ')
if ans == 'yes':
high = mid
else:
low = mid
Generally the Programs Algorithm is given as
low = int(input('Enter minimum value of range: '))
high = int(input('Enter maximum value of range: '))\
while high > low: #Loop starts
mid = (int)((high + low) // 2)
ans = input('Is ' + str(mid) + ' equal to your number? ')
if ans == 'yes':
print('Number is: ' + str(mid))
break
ans = input('Is ' + str(mid) + ' greater than your number? ')
if ans == 'yes':
high = mid
else:
low = mid
For more information on Programs visit
https://brainly.com/question/13940523