Marco is writing a program in which the users will be told that they cannot enter the castle if they do not have 50 armor points. Which of the following lines of code would do that?

(1 point)
Responses

if armor > 50:

print(“You cannot enter the castle!”)

if armor > 50: print(“You cannot enter the castle!”)

if armor = 50:

print(“You cannot enter the castle!”)

if armor = 50: print(“You cannot enter the castle!”)

if armor == armor:

print(“You cannot enter the castle!”)

if armor == armor: print(“You cannot enter the castle!”)

if armor < 50:

print(“You cannot enter the castle!”)

if armor < 50: print(“You cannot enter the castle!”)
Skip to navigation

The correct line of code would be:

if armor < 50:
print("You cannot enter the castle!")