Search This Blog

Saturday, 20 November 2021

Write a Python program to test whether a passed letter is a vowel or not.

Introduction:
This program test whether a passed letter is vowel or not.

PROGRAM:
def is_vowel(char):
    all_vowels = 'aeiou'
    return char in all_vowels
print(is_vowel('c'))
print(is_vowel('e'))				 

Output:  
True
False                                                                                                                                                                                                                                                                                                                                                                          

No comments:

Post a Comment

how to implement YOLOv3 using Python and TensorFlow

Object Detection with YOLOv3 Introduction YOLOv3 (You Only Look Once version 3) is a real-time object detection algorithm that can detect ob...