You are viewing a single comment's thread. Return to all comments →
There's a remedy for that. This code finds only the gmail.com:
names = [] N = int(input().strip()) for a0 in range(N): firstName,emailID = input().strip().split(' ') firstName,emailID = [str(firstName),str(emailID)] if emailID.endswith('@gmail.com'): names.append(firstName) for name in sorted(names): print(name)
Day 28: RegEx, Patterns, and Intro to Databases
You are viewing a single comment's thread. Return to all comments →
There's a remedy for that. This code finds only the gmail.com: