so I have this dictionary:
Dictionary<string, double> ddz = new Dictionary<string, double>();
ddz.Add("Paco", 17); // i want this to be printed
ddz.Add("Martin", 16);
//Console.WriteLine(ddz[0]); this line is being marked as an error
I want to print the first Value in the dictionary. I know I can pretty easily do ddz["Paco"]
, but for the program, I'm trying to code I need to do it with a number.