+ 2

I wrote a program which receives a string, modifies it and then prints the output but it doesn't work 😄 where is the problem???

I want to write a program that reads a string from the input and applies the following changes to it: 1- Delete all the vowels. 2- Print a dot before each silent letter. 3- Write all the remaining silent letters in lowercase. (vowels are aeiou) https://code.sololearn.com/cCHk9qXmOmHp/?ref=app

22nd Oct 2022, 7:35 AM
Amateur
4 Answers
+ 4
# in for loop is index out range # the way for task 2 can be sout='' for i in range (0, len(sentence)): sout += '.' sout += sentence[i] print(sout)
22nd Oct 2022, 8:07 AM
JaScript
JaScript - avatar
+ 2
What are silent letters here? I+1 , I+3 results out of bounds exception...
22nd Oct 2022, 8:11 AM
Jayakrishna 🇼🇳
+ 1
22nd Oct 2022, 8:27 AM
Amateur
+ 1
JaScript Thank u so much ⚘
22nd Oct 2022, 8:27 AM
Amateur