Which of the following functions creates a Python object?

Which of the following functions creates a Python object? Correct Answer re.compile(str)

The function re.compile(srt) compiles a pattern of regular expression into an object of regular expression. Hence re.compile(str) is the only function from the above options which creates an object.

Related Questions

Which of the following Python codes will result in an error?
object = ‘a’
Is the following Python code valid?
class B(object): def first(self): print("First method called") def second(): print("Second method called")ob = B()B.first(ob)