I wrote a program in which the user may enter any string. It should:
- Delete all the vowels.
- Insert the character "." before each consonant.
- Replaces all uppercase consonants with corresponding lowercase ones.
Here is the code I wrote:
s=raw_input()
k=s.lower()
listaa=[]
for x in k:
    listaa.append(x)
    if x=='a':
    listaa.remove('a')
    if  x=='o':
        listaa.remove('o')
    if x=='y':
        listaa.remove('y')
    if x=='e':
        listaa.remove('e')
    if x=='u':
        listaa.remove('u')
    if x=='i':
        listaa.remove('i')
for a in listaa:
print '.%s'%(a),
This code works fine, but for example if I use the input tour, the output is .t .r. Although this is right, it's not exactly what i want. I want to remove spaces between them. I want output that looks like: .t.r
How do I do this?
 
     
     
     
     
    