creatures = ["\U0001F47D", "\U0001F9DF", "\U0001F9DD"]
creaname = ["alien", "zombie", "elf"]
creapoints = [5, 10, 15]
print("Creatures to kill -> ")
for crea, name in zip(creatures, creaname):
print(f"-{crea} ({name})")
kill_one_name = input("Kill one of them | \U0001F47D \U0001F9DF \U0001F9DD | : ").lower()
if kill_one_name in creaname:
index = creaname.index(kill_one_name)
#print(index)
print(f"Earned +{creapoints[index]} points for killing {creaname[index]}")
else:
print("Invalid creature choice")
If someone assists me with some syntax on how to add variety to this and some ideas to improve to make it more optimal and fast.
New contributor
user24663490 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.