Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- number_of_strings = int(input())
- for current_string in range(number_of_strings):
- current_string = input()
- if "," in current_string \
- or "." in current_string \
- or "_" in current_string:
- print(f"{current_string} is not pure!")
- else:
- print(f"{current_string} is pure.")
Advertisement