Hi EriCartman13,
If you want to create a random number between 1 and 100, the conventional way of doing that in Python is:
import random
x = random.randint(1,100)
I would swap this code in and remove the for loop. The resulting program creates a random integer between 1 and 100, assigns that integer to x, then keeps the user guessing until he or she gets the number right.
For loops arenot used to generate random numbers - please read the Python documentation for details on the for loop: here .