Run
x= 'apple' ch = 'a' if ch in x : print('The character is present in string.') else : print('The character is not present in string.')
Output