Write a function that converts a integer dictionary into a list of tuples.


Topic: Write a function that converts a integer dictionary into a list of tuples.

Solution

def dict_to_tuple(input_dict):
  out_tuple = [(a, b) for a,b in input_dict.items()]
  return out_tuple



List all Python Programs