I want to combine two (or more) lists in a single list where each entry in the new list groups items from the original lists. I want to go from this
to this
The First list is string with line breaks as delimiters. And other list is int with line breaks as delimiters. Here is the code
with SampClient(address='rp.valrisegaming.com', port=7777) as client:
print("Connected Clients")
print("Name | Score".format(client=client))
print("==================================")
players = [client.name for client in client.get_server_clients_detailed()]
sp = '\n'
sp = sp.join(players)
score = [client.score for client in client.get_server_clients_detailed()]
ss =('\n'.join(map(str, score)))
print(f"{sp}:{ss}")