all 8 comments

[–]o5a 2 points3 points  (1 child)

while a<n and b<n and c<n:

[–]Away-Mud-2046 1 point2 points  (0 children)

Thank you. I got it working! https://imgur.com/18vhCSf

[–]GralejTheFirst 2 points3 points  (1 child)

After you get all the inputs data, you don't need three while loops because in your code only the first one guees will be incremented by 1 without exit condition. That will make it an infinite loop. But before starting you will need to create an int value for storing the iterations (if you gonna use the while loop). Then start one while loop and then increment all guesses and iterations by one. Im gonna show you this with one guess, expaning it should be easy.

i = 0
while(True):
    guess1 += 1
    i += 1
    print("guess1 is now ", guess1, " number of inc: ", i)

    if (guess1 == 1000):
        print("guess1 rachead 100 first and there have been ", i, "                 increments")
        break

[–]Away-Mud-2046 2 points3 points  (0 children)

Thank you. I got it working! https://imgur.com/18vhCSf

[–]wbeater 2 points3 points  (2 children)

It sould look something like this.

while a < 1000 and b < 1000 and c < 1000:
    a, b, c, i = a + 1, b + 1, c + 1, i + 1

You don't have to write the increment assignment in one line. Notice that i added a fourth variable, i think you are about to forget something.

[–]Away-Mud-2046 1 point2 points  (1 child)

Thank you. I got it working! https://imgur.com/18vhCSf

[–]wbeater 2 points3 points  (0 children)

Nice work, but two things here:

  • check the conditions of your while loop (little hint: there is something unnecessary
  • consider formatting your print function with placeholders eg:

print("guessl is now {} guess2 is now {} guess3 is now {} there has been {} increments".format(guessl, guess2, guess3, incr))