How to pad 0s to garantee same length while iterating over two lists?
How to pad 0s to garantee same length while iterating over two lists? Question: My inputs are : x = [‘A’, ‘B’, ‘B’, ‘C’, ‘D’, ‘D’, ‘D’] y = [ 4 , 3 , 5 , 9 , 1 , 6 , 2 ] And I’m just trying to make this dictionnary. {‘A’: [4, 0, …