lst = """ \
элемент1
элемент2
""".splitlines()
def lines2list(text):
return [p.strip() for p in text.splitlines() if p.strip() != '']
text = """
abc@gmail.com ; 3uEZPYf1KG3v
klmn@gmail.com;3dg
"""
def linesTwoElements2list(text):
text = [p.partition(';')[0::2] for p in text.splitlines()]
return [[s[0].strip(), s[1].strip()] for s in text if s[0].strip() != '']
"pep8_ignore":
[
"W191", # отступы пробелами/табами
],