Mike,
The algorithm you use is what causes the infinite loop (it cycles
through the same numbers repeatedly). I've updated the code and I'll
post it here:
def num(number):
r=input("range >")
ran=range(r+1)
guess=r/2
print guess
guesses=1
min = 0
max = r
while gues
i wrote a program that guesses number in the most effective way i could
think of but i keep running into endless loops any help fixing it would be
great :)
here it is:
def num(number):
r=input("range >")
ran=range(r+1)
guess=r/2
print guess
guesses=1
while guess!=number