0
How do i do that
I need to create a funkcion which would return a word without a vovels. Ex. if there is a word naaAmed it would return nmd. And it would include input()
6 Réponses
+ 1
Tank you. I was doing something similar but i was mising something.
+ 5
Try to code it first. You won't learn unless you try.
But I will give you clues on how to do it. Create a list containing all the vowels. Then loop over the word, if it's a vowel then replace it with "".
+ 5
There is also an easier way of solving this using join method
+ 5
Here is my implementation
https://code.sololearn.com/cz9O1pVhMRIt/?ref=app
+ 4
Try this code.
def h(s):
x=['a','e','i','o','u']
n=''
for i in s:
if(i not in x):
n+=i
return n
print(h('man')) #output=mn
Next try yourself good luck.
+ 4
No problem. Happy coding! 😀