Day 28: RegEx, Patterns, and Intro to Databases

  • + 0 comments

    You can even do it using one liner:

    print('\n'.join(n for n,e in sorted([input().split() for _ in range(int(input()))]) if e.endswith('@gmail.com')))