You are viewing a single comment's thread. Return to all comments →
import re for _ in range(int(input())): n=input() l=re.findall(r"^[hH][Ii]\s[^Dd].*",n) if l: print(*l)
Seems like cookies are disabled on this browser, please enable them to open this website
Saying Hi
You are viewing a single comment's thread. Return to all comments →