Write a code snippet in Python to print out the contents of a given dictionary.
{"apple": 1, "banana": 2, "carrot": 3}
dictionary = {"apple": 1, "banana": 2, "carrot": 3}

for item in dictionary:
  print("{}: {}".format(item, dictionary[item]))