i am in the first weeks of learning how to code in python and i need some feedback on a simple piece of code I have written
Objective: find and print all indices of "e" in a string
the code i have written
sentence = "celebrate"
for i in sentence:
if i == "e":
indexed_sentence = sentence.index("e")
print(indexed_sentence)
I would like the code to print 1,3,8