1import re
23defsplit_on_empty_lines(s):45# greedily match 2 or more new-lines6 blank_line_regex = r"(?:\r?\n){2,}"78return re.split(blank_line_regex, s.strip())
9
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content