searching a word in string

Sai_kiran_rachakonda · October 30, 2022
x = 'I am a boy'
if 'boy' in x:
    print("'boy' exists in string")
Output

Comments

Please sign up or log in to contribute to the discussion.