I need to use lowercase (a, e, i, o, u) and also uppercase (A, E, I, O, U) in self.all = variable.startswith(('a', 'e' , 'i', 'o', 'u')).
I don't want two variables for Apple and for apple, but always use the same variable x (within which I will manually change Apple or apple).
What I want is to print ok both when I write Apple in x and when i write apple in x. So I would like you to manually replace Apple with apple and try to print ok correctly.
x = "Apple"
class Vocal:
def __init__(self, variable):
self.all = variable.startswith(('a', 'e', 'i', 'o', 'u'))
vocal = Vocal(x)
if vocal.all:
print(x, ": ok")
else:
print(x, ": no")