import re chars = "ADVY"positions = [m.start() for m in re.finditer("|".join(map(re.escape, chars)), raw_input())]print(positions)
ABCDEYYFGHIAAJKVLMNOPDCQRSTAAVVVUVWXYZ
[0, 3, 5, 6, 11, 12, 15, 21, 27, 28, 29, 30, 31, 33, 36]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!