‘in’ statement in String
fruits='banana'
bana in fruits
Ans: True
Python Function to confirm he vowel in the given input.
def is_vowel(l):
return l in 'aeiou'
is_vowel('a'). – Ans: True
is_vowel('l'). – Ans: False
The statement ‘in’ works as searching something in a string.
apple<banana – a is less than b this means it is true
apple<apricot – first two characters are same, but third character is different, p is less than r, this means this is also true.
Find ASCII Values: ord(‘A’)