Sort by

recency

|

290 Discussions

|

  • + 0 comments

    regex_pattern = r"[,.]" # Do not delete 'r'.

    import re print("\n".join(re.split(regex_pattern, input())))

  • + 0 comments

    dont overthink it

  • + 0 comments
    regex_pattern = r"[.,]"
    import re
    print("\n".join(re.split(regex_pattern, input())))
    
  • + 0 comments
    regex_pattern = r"\D+"	# Do not delete 'r'.
    
    import re
    print("\n".join(re.split(regex_pattern, input())))
    
  • + 0 comments

    regex_pattern = r"[,.]"

    import re print("\n".join(re.split(regex_pattern, input())))