222k views
5 votes
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?

A.
if armor > 50:

print(“You cannot enter the castle!”)

B.
if armor = 50:

print(“You cannot enter the castle!”)

C.
if armor == armor:

print(“You cannot enter the castle!”)

D.
if armor < 50:

print(“You cannot enter the castle!”)

User Sboulema
by
7.4k points

2 Answers

3 votes

Answer:

d

Step-by-step explanation:

the sign “<“ means the item on the left side is smaller than the item on the right.

User Tiago Pimenta
by
7.8k points
4 votes

Answer:

D

Step-by-step explanation:

the sign “<“ means the mouth would eat the bigger one. When you put it in it will allow you to go in the castle if you have MORE then 50


I hope it correct and it helps!

User Doynax
by
8.9k points