+ 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)
3 Respostas
+ 1
We can see that vowels are replaced by * and Hyderabad is capitalized in output.
What you're trying to do exactly?
0
Seems like hes replacing vowels
0
https://code.sololearn.com/cETqWwYFh020/?ref=app
This is working