How do I make the loop work so that it will end when you get it right and ask the question again if you get it wrong?
When i guess wrong two or more times it will always say wrong no matter what.

```
import random;
import sys;
x = random.randint(1, 100);
print(x);
guess = int(input("Guess a number 1 to 100"));
if guess == x:
        print("correct");
        sys.exit()
while guess != x:
    print("wrong");
    int(input("Guess a number 1 to 100"));
    print(x);
    if guess == x:
        print("Correct");
        sys.exit()

```

Also what function records the number of times it loops. For example if I guess wrong 10 times then I want to print that I scored a 10.