Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num_of_strings = int(input())
- string_name = ""
- ch_1 = ","
- ch_2 = "."
- ch_3 = "_"
- for i in range(num_of_strings):
- word = input()
- string_name = word
- if ch_1 in word:
- print(f"{string_name} is not pure!")
- elif ch_2 in word:
- print(f"{string_name} is not pure!")
- elif ch_3 in word:
- print(f"{string_name} is not pure!")
- else:
- print(f"{string_name} is pure.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement