Complete the code to check if the user entered the correct password.
if user_input_password == [1]: print("Password accepted")
The code compares the entered password with the stored password to verify it.
Complete the code to send a verification code to the user's phone.
send_sms(phone_number, [1])The verification code is sent to the user's phone number for the second authentication step.
Fix the error in the code that verifies the second factor code.
if entered_code == [1]: print("Access granted") else: print("Access denied")
The entered code must be compared to the verification code sent to the user.
Fill both blanks to create a dictionary of users with their 2FA status.
users_2fa_status = {user: user.[1] for user in user_list if user.[1] [2] "enabled"}The dictionary stores the 2FA status for each user who has 2FA enabled.
Fill all three blanks to filter users who passed both authentication steps.
authenticated_users = {user: status for user, status in users_status.items() if status['password'] [1] True and status['2fa'] [2] True and user [3] blocked_users}The code selects users who have both password and 2FA verified and are not in the blocked users list.