The code prompts the user to enter a password 3 times, checking each input against the hardcoded password "realm0101". If the input matches on any attempt, it prints "correct login", otherwise it prints "incorrect try again" until the user reaches their last attempt, at which point it prints "you are locked out".
The code prompts the user to enter a password 3 times, checking each input against the hardcoded password "realm0101". If the input matches on any attempt, it prints "correct login", otherwise it prints "incorrect try again" until the user reaches their last attempt, at which point it prints "you are locked out".
The code prompts the user to enter a password 3 times, checking each input against the hardcoded password "realm0101". If the input matches on any attempt, it prints "correct login", otherwise it prints "incorrect try again" until the user reaches their last attempt, at which point it prints "you are locked out".