I've been trying to write a scrip that would turn the input to lowercase, erase all vowels and put a period before every consonant. But my script always gets stuck/timing out. Can you help me out?
input = raw_input()
input1 = input.lower()
input_list = list(input1)
for letter in input_list:
if str(letter) == "a" or str(letter) == "o" or str(letter) == "y" or str(letter) == "e" or str(letter) == "u" or str(letter) == "i":
input_list.pop(input_list.index(letter))
else:
input_list.insert(input_list.index(letter) - 1, ".")
print ''.join(input_list)