The code is fine and it will run without any problems and without need to add anything else.
while True: print('Who are you?') name = input() if name != 'Joe': continue print('Hello, Joe. What is the password (It is a fish.)') password = input() if password == 'swordfish': break print('Access granted.')example output
Output:Who are you?
John
Who are you?
Joe
Hello, Joe. What is the password (It is a fish.)
Tuna
Who are you?
Joe
Hello, Joe. What is the password (It is a fish.)
swordfish
Access granted.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs