Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- flag = False
- for num in range(n):
- text = input()
- for i in text:
- if i in(".",",","_"):
- print(f'{text} is not pure!')
- flag = True
- break
- if not flag:
- print(f'{text} is pure.')
Advertisement
Add Comment
Please, Sign In to add comment