Q:

Dictionaries and For Loops

say that the following is our code:
d = {"Happy":"Clam", "Sad":"Panda"}
for i in d:
    print(i)

now     print(i) will print out just the keys, but how could I change it so that it printed the values? 

A:

A Python dict has a number of methods available for getting a list of the keys, values, or both.
To answer your question, you can use d.values() to get a list of the values only:
d = {"Happy":"Clam", "Sad":"Panda"}
for v in d.values():
   print(v)

Output:
Clam
Panda

The items() method is particularly useful, though, so should be mentioned.
d = {"Happy":"Clam", "Sad":"Panda"}
for k, v in d.items():
   print(k, v)

will print:
Happy Clam
Sad Panda

A warning about the ordering of items from the documentation:

CPython implementation detail: Keys and values are listed in an
  arbitrary order which is non-random, varies across Python
  implementations, and depends on the dictionary’s history of insertions
  and deletions.

