list = ['username1', 'https://link.com/bsd3nj', 'username2', 'https://link.com/a32fs2', 'username3', 'https://link.com/cfzxso']
sort_list = '* {}'.format('- \n'.join(list))
Output:
* username1-
https://link.com/bsd3nj-
username2-
https://link.com/a32fs2-
username3-
https://link.com/cfzxso-
username4-
https://link.com/a235jsh-
username5-
https://link.com/123nls2-
This is what I have, but its not what I want happen.
I want the list to be like
* username1 - https://link.com/bsd3nj
* username2 - https://link.com/a32fs2
* username3 - https://link.com/cfzxso
* username4 - https://link.com/a235jsh
* username5 - https://link.com/123nls2
I have thought about doing .split()
but there isnt really any pattern. The username is random so it the link ending.