I am trying to print dictionaries keys and values separately, the dictionary that've created consist of 2 values in a list: {'item':[val1,val2]}
How can i access the values separately?
This is my code where i tried to access the value of val1, but am getting both of val1 & val2
k=1
for i,j in toCart.items():
print("(",k,")"," ",i,j)
k += 1