I'm trying to do an assignment where I have to find the amount of letters before it gets to a "f" in a string. I was able to get one thing to work, but it only prints out one "f".
An example of this would be "office", it takes 1 letter to get to one of the "f's", but I can not get it to get to the second f, if that makes sense.
a = input()
b = a.index("f")
print(b)