Run your code online with this amazing tool. Just put your code and click on the "Run Code" button.
#Python program to check if a string contains
#any special characters or not
# import required package
# Function checks if the input string(test)
# contains any special character or not
# Make an RE character set and pass
# this as an argument in compile function
# Pass the string in search function
# of RE object (string_check).
if(string_check.search(test) == None):
print("String does not contain Special Characters.")
print("String contains Special Characters.")
# Driver Code
if __name__ == '__main__' :
# Enter the string to be checked
test = "Code%Speedy"
# calling check_splcharacter function
If the code takes user input, put it here. For multiple inputs, one per line
Using this online Python compiler tool, you can execute Python code online. This tool will help you to start learning Python without installing Python on your machine.
This tool will also help you to make it easier to practice and increase your programming skill in Python.