A loop that will output only the names that come before "Thor" in the alphabet from the names list.
1 answer:
names = ["Kevin", "Joe", "Thor", "Adam", "Zoe"]
names.sort()
for x in names:
if x == "Thor":
break
else:
print(x)
I made up my own names for the sake of testing my code. I wrote my code in python 3.8. I hope this helps.
You might be interested in
Answer:
it is used to view incidents recorded in the Application, Security, and System logs
Explanation: pls make my answer brainliest
Answer:
D. recursive method
Explanation:
I took the test on PLATO
Answer:
the four is all the same way that can harm people through the internet
Explanation:
Answer:
A Web service
Explanation:
A Web service is a software system designed to support interoperable machine-to-machine interaction over a network. It has an interface described in a machine-processable format