I have multiple lists and I want to zip them like shown in the following example :
d = {} clients = ["client_1","client_2","client_3",...] # n number of client # every client has a list of element : d["acc_list" + client] = [1, 2, 3, ...] So how could I zip them without knowing the number of clients :
acc_clients = zip(d["acc_list" + "client_0"],d["acc_list" + "client_2"],d["acc_list" + "client_3"], .... )
len(clients)?zip(d["acc_list" + "client_1"],d["acc_list" + "client_2"],d["acc_list" + "client_3"] )I want an efficient way to loop through clients listacc_clients = zip(d["acc_list" + client ] for client in client_names)but it doesnt work