import random zufall = random.randint(1, 100) print(zufall) playAgain = True min = int(1) max = int(100) guess = int(guess) while playAgain: print input("Number: ") guess = input() zufall = random.next(min, max + 1) while guess != zufall: print input("guess a number between " + min + '-' + max + ": ") if guess > zufall: print input(guess + "is to high!") elif guess < zufall: print input(guess + "is to low!") break print("number: " + zufall) print("You won!!")