Advertisement
Andonoff

String Pureness

May 18th, 2025 (edited)
293
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. number_of_strings = int(input())
  2.  
  3. for current_string in range(number_of_strings):
  4.     current_string = input()
  5.  
  6.     if "," in current_string \
  7.         or "." in current_string \
  8.         or "_" in current_string:
  9.  
  10.         print(f"{current_string} is not pure!")
  11.     else:
  12.         print(f"{current_string} is pure.")
Advertisement
Comments
  • dutmdh
    3 hours
    # text 0.32 KB | 0 0
    1. Leon West Accidental Goblin King Audiobooks 1-4
    2.  
    3. magnet:?xt=urn:btih:49d386821d7a4093ac6209084242fbdf979b0ac1
    4. magnet:?xt=urn:btih:9f49b631081256fdab2d7b13927ce27bd44cf683
    5. magnet:?xt=urn:btih:6ef04c5cd32428d63afbca8a5b754688082059d3
    6. magnet:?xt=urn:btih:feae4390a335f0743bc8852d70183ace64240e1a
    7.  
    8. https://audiobookbay.lu/
Add Comment
Please, Sign In to add comment
Advertisement
OSZAR »