fork download
  1. from string import punctuation
  2. VOWELS = "AEIOUY"
  3. CONSONANTS = "BCDFGHJKLMNPQRSTVWXZ"
  4. VOWELS_new = VOWELS.lower()
  5. CONSONANTS_new = CONSONANTS.lower()
  6.  
  7. def checkio(text):
  8. for t in text:
  9. if t in punctuation:
  10. print(t)
  11. tetxtx = text.split(t)
  12. print(tetxtx)
  13. return 0
  14.  
  15.  
  16. checkio('Dog,cat,mouse,bird.Human.')
  17.  
Success #stdin #stdout 0.03s 27808KB
stdin
Standard input is empty
stdout
,
,
,
.
.
['Dog,cat,mouse,bird', 'Human', '']