i need to check existing of Character (*,&,$) in Given String using python command such as given below?
Eg: stringexample='mystri$ng&*'
check stringexample contains any special symbols like *,&,$ then return true?
shall i try with string method __contains__()
1 Answer