I have to let the player know if their guess is too low, too high, or correct, but I am not getting any output after asking them their bounds. Any help noting what I am doing wrong? This is for my current version of Python, I believe.
print('Welcome to the Higher or Lower game!')
import random
lowr = int(input('What would you like for your lower bound to be?: '))
upr = int(input('And your highest?: '))
x = (random.randint(lowr, upr))
if lowr >= upr:
print('The lowest bound must not be higher than highest bound. Try again.')
if lowr < upr:
g = int(input('Great now guess a number between', lowr, 'and', upr, ':'))
while g > x:
int(input('Nope. Too high, Guess another number: '))
while g < x:
int(input('Nope. Too high, Guess another number: '))
if g == x:
print('You got it!')
Here is a possible version of the correct code:
There were some errors with: the use of the input method and the event lagestine.