Please someone explain this , thanks . | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please someone explain this , thanks .

What is the output of this code ? def is_vowel(char) : all_vowels = 'aieou' return char in all_vowels print(int(is_vowel('c')))

20th Oct 2020, 4:43 PM
Curious Ant
Curious Ant - avatar
1 Answer
+ 5
C not in 'aieou' so result 0
20th Oct 2020, 4:55 PM
Julia Shabanova
Julia Shabanova - avatar