import re str = "China is a great country" x = re.search("a", str) print(x) #this will print an object