func_code: def swap_keys_values(d):
      new_d = {}
      mylist = list(d.items())
      i = 0
      while i < len(mylist):
          d_key = mylist[i][0]
          d_val = mylist[i][1]
          new_d[d_val] = d_key
          i += 1
      return new_d