I'm learning python and having a hard time with this code. I need to update every dict key value with the elements in the list. The list and dict will always have the same length.
list = [1, 2, 3, 4, 5]
dict = {2433: 0, 2429: 0, 2425: 0, 2423: 0, 2427: 0}
Expected output:
dict = {2433: 1, 2429: 2, 2425: 3, 2423: 4, 2427: 5}