We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
#!/bin/python3importmathimportosimportrandomimportreimportsysif__name__=='__main__':N=int(input().strip())names=[]forN_itrinrange(N):first_multiple_input=input().rstrip().split()firstName=first_multiple_input[0]emailID=first_multiple_input[1]# if emailID.endswith("@gmail.com"):ifre.match(r'.*@gmail.com$',emailID):names.append(firstName)print(*sorted(names),sep="\n")
Cookie support is required to access HackerRank
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 →