Disclaimer I am a noob. Just started learning python. I know no computer languages, I just thought it would be nice to change my career for me and my family. I'm learning from online video on youtube. I think he is good... I still don't understand/know what he is talking about(terminology and stuff) but im trying to follow along and hoping I will understand wth he is talking about after hearing him say the words over and over again....
The problem is, if I win, it still says that I lose... If I lose it doesn't say that I WON... so what do I have to do differently?
I tried … if guess =/= secret_number: but apparently that / doesn't mean not equal to...
My code -
secret_number = 9
guess_count = 0
guess_limit = 3
while guess_count < guess_limit:
guess = int(input('Guess: '))
guess_count += 1
if guess == secret_number:
print('You Won!')
else:
print('You Lose!')