nput= 'Manoj is an engineer from Hyderabad' output ="M*n*j *s fr*m HYDERABAD" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

nput= 'Manoj is an engineer from Hyderabad' output ="M*n*j *s fr*m HYDERABAD"

My code: words =input.split() output =' ' unwanted =['an','engineer'] for word in words: if word in unwanted: output.join(word) print(output)

5th Apr 2022, 5:50 AM
Manoj Bhaagam
3 Answers
+ 1
We can see that vowels are replaced by * and Hyderabad is capitalized in output. What you're trying to do exactly?
5th Apr 2022, 6:29 AM
Simba
Simba - avatar
0
Seems like hes replacing vowels
5th Apr 2022, 6:31 AM
Ion Kare
Ion Kare - avatar
6th Apr 2022, 4:46 AM
UNKNOWN