tegge-classroom / STAT2984-2018

STAT 2984: Statistical Programming I - Spring 2018
1 stars 13 forks source link

Differences between Keys and Values in Dictionaries? #8

Open cahicks opened 6 years ago

cahicks commented 6 years ago

I was having trouble remembering which part of a dictionary is a key is and what part is a value when I was doing the homework. Here's an example dict = {'name':'Jack', 'age': 26}

bdonovan7 commented 6 years ago

the keys are the categories and the values are the specific things. So in this example, 'name' and 'age' are keys, and 'Jack' and '26' are the values.