Hey everyone. I’m kinda new to coding, so I apologize if the terms I’m using aren’t accurate enough. Right now I’m testing the “while” and “if” conditionals with this code:
name = input('Write your name: ')
print('Hello, ' + name + '.')
welcome = input('Press Y to continue: ')
if welcome == 'Y' or welcome == 'y':
print('You made it')
while welcome != 'y' or welcome != "Y":
wrong_entry = input('You must press Y to continue, ' + name + ': ')
if wrong_entry == 'Y' or wrong_entry == 'y':
print('You made it')`
The thing is, even when the while’s condition is false, the wrong_entry input is shown in console. I don’t know if I’m doing something wrong (probably!). I’ll upload a pic of the console running the code.
Thanks in advance!