You are viewing a single comment's thread. Return to all comments →
fast python solution
import re n = int(input().strip()) data = [] for _ in range(n): first_multiple_input = input().rstrip().split() first_name = first_multiple_input[0] email_id = first_multiple_input[1] data.append(first_name) if re.findall("\w[a-zA-Z]*@gmail.com", email_id) else None [print(x) for x in sorted(data)]
Seems like cookies are disabled on this browser, please enable them to open this website
Day 28: RegEx, Patterns, and Intro to Databases
You are viewing a single comment's thread. Return to all comments →
fast python solution