You need to know string slicing for this and how to append elements to a list.
With this knowledge, you can write a similar program:
liste_ant = ["enfant", "bonjour", "éléphant", "aidant", "saumon", "amusant", "blessant", "piscine", "broyant", "carburant", "devant", "vibrant"]
ants = []
for element in liste_ant:
if element[-3:] == "ant": # slice string from the 3rd element from the right until the end, check if it equals to "ant"
ants.append(element) # append this element to the ants list
for ant in ants:
print(ant)