Login and Register ×
Check your Email for the OTP
import re x = re.compile(r'(\d\d\d)-(\d\d\d\d)') y = x.search('The phone number is 444-4444') print(y.group(2))
import re x = re.compile(r'(\d\d\d)-(\d\d\d\d)') y = x.search('The phone number is 444-4444') print(y.group(0))
import re x = re.compile(r'(Sun)+day') y = x.search('Today is a nice day and a Sunday') print(y.group())
import re x = re.compile(r'(Python){2}') y = x.search('PythonPythonPython') print(y.group())
import re x = re.compile(r'(Python){1,3}?') y = x.search('PythonPythonPython') print(y.group())
import re x = re.compile(r'(Sun)+day') y = x.findall('Today is a nice day and a Sunday') print(y)
import re x = re.compile(r'[ptPT]') y = x.findall('Python 3') print(y)
import re x = re.compile(r'^Py') y = x.search('Python_3') print(y.group())
import re x = re.compile(r'3$') print(x.search('Python_3') == None)
import webbrowser webbrowser.open('http://google.com')
Q: What will be the output after the following statements?
Q: What do the following statements do?