python check character exists in string

Solutions on MaxInterview for python check character exists in string by the best coders in the world

showing results for - "python check character exists in string"
Filippo
03 Jan 2017
1string = 'ex@mple'
2
3if '@' in string:
4	return True
5
6if '@' not in string:
7	return False
similar questions
queries leading to this page
python check character exists in string