Online Python Compiler

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 import re # Function checks if the input string(test) # contains any special character or not def check_splcharacter(test): # Make an RE character set and pass # this as an argument in compile function string_check= re.compile('[@_!#$%^&*()<>?/\|}{~:]') # Pass the string in search function # of RE object (string_check). if(string_check.search(test) == None): print("String does not contain Special Characters.") else: print("String contains Special Characters.") # Driver Code if __name__ == '__main__' : # Enter the string to be checked test = "Code%Speedy" # calling check_splcharacter function check_splcharacter(test)


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.

  • Read our Python tutorials
  • Many programmers and developers may find testing simple code on their machine every time is a heavy wait task. So we are presenting this online compiler to you. Happy coding...!