Computer Science, asked by Jaivadan8652, 11 months ago

Write a python program to check whether a string containd any special character or not

Answers

Answered by Anonymous
8

Explanation:

  • compile function. Pass the argument string (ie test) in the search function. The search function matches each character present inside the 'test' string with the special characters present in the regular expression. If there is a match it returns the character that matched otherwise it returns None.
Answered by tejasvinitha
0

Answer:

str = input("enter the string ")

if str = val(string):

print ("it doesn't contain any special characters")

else:

print ("it contain special characters")

Similar questions