co 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

page 2 of 2

The correct line of code is:

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