0
Function in python
def is_vowel(letters): If #blank#: return (True) else: return (False) Replace the blank so is_vowel becomes a function that takes letter as input and print whether a letter is vowel?
4 odpowiedzi
+ 1
Look, the logic part should be in the function.. The if part should be outside the function... First try to write the logic in the function part.. And then take input from the user and write tha same if and else blocks after receiving input from the user...
+ 1
You just serch for the letter in a,e,i,o,u and your done
0
def is _vowel(letter):
return letter in 'aeiou'
- 1
def is_vowel(letters):
If is_vowel('a')
return (True)
else:
return (False)