Uncategorized Print Only First Key In Dictionary Python : The first two statements in listing 3 use indexing by key value and assignment to add two new key:value pairs to the dictionary. So, first, let's create a dictionary that contains student names and their scores i.e.