Join strings into one with right separation

This commit is contained in:
Freezed 2020-07-16 09:20:12 +02:00
parent d09dcc6b63
commit fbdc3815e7
1 changed files with 1 additions and 2 deletions

View File

@ -21,7 +21,6 @@ def main(string, n, sep):
'abc|def|ghi|jk'
"""
answer = ""
strings = list()
stack = "".join(string.split(" "))
@ -32,7 +31,7 @@ def main(string, n, sep):
stack = stack[n:]
steps -= 1
return strings
return sep.join(strings)
if __name__ == "__main__":