You wrote the following code:

Automate Cybersecurity Tasks with Python | Weekly challenge 1 Quiz | 

You wrote the following code:

if attempts >= 5:
print("locked")
else:
print("try again")

If the value in the attempts variable is 3, what will Python do?

  • Output the message “locked”
  • First output the message “locked” and then output the message “try again”
  • First output the message “try again” and then output the message “locked”
  • Output the message “try again”

 

Leave a Comment