Line:
^310003312 ^310005818 It is obtained from:
def get_author_id(name): return author_by_id.get(name) for name in authors_a: author_id = get_author_id(name) d = "^3{}".format(author_id) print(d) Record rises above each other. Desired total:
b = ['^310003312', '^310005818'] So that later I could turn on the index and get the result. For example:
print(b[1]) Receive:
^310005818 I tried to share, but the line still stands above each other, and not into the line:
b = b.split(' ') ['^310003312'] ['^310005818'] And the index is not possible to apply. Tell me, please, how can I solve this problem?