You are viewing a single comment's thread. Return to all comments →
You could get even more Pythonic (also conforming to PEP 8)
import re lst=[] for a0 in range(int(input())): firstName, emailID = [str(s) for s in input().split()] if re.search('@gmail\.com$', emailID): lst.append(firstName) print(*sorted(lst), sep='\n')
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 →
You could get even more Pythonic (also conforming to PEP 8)