← Back to List

6965번: Censor ↗

Solutions

Python 3
191 B | 191 chars
for _ in range(int(input())):
    s = input().split()
    for i in s:
        if len(i) == 4:
            print("*"*4, end = " ")
        else:
            print(i, end = " ")
    print("\n")