HackerRank Tweets

  • + 0 comments

    Python 3

    import re
    n = int(input())
    counter = 0
    for _ in range(n):
        tweet = input()
        if re.search(r"hackerrank", tweet, re.IGNORECASE):
            counter += 1
    print(counter)