The prog asks me to check whether any special char like !@#... are present in the given string. How can I do this?
Try this any(x in string for x in '@#!')
How to check whether there is any special characters present in the given string using python?