Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = "Hello Python!"
- print('H' in s)
- # output : True
- print('x' in s)
- # output : False
- # for substring
- print('Pyt' in s)
- # output : True
- print('abc' in s)
- # output : False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement