I'm not able to think of anything other than this:
I'm not able to think how am gonna make comp keep guessing until the number matches User's input
Thank you...
num=int(input ('User\'s Input:\n')) import random num2=random.randint(1,50) while num2 != num: if num2 > num: print ('Lower') if num2 < num: print ('Higher') else: print ('Comp guessed it right') break input ('Press enter to exit')I created an infinite loop.
I'm not able to think how am gonna make comp keep guessing until the number matches User's input
Thank you...