Sorry! Posting Assignment is allowed only for commercial accounts.
def Convert(lst): res_dct = {lst[i]: lst[i + 1] for i in range(0, len(lst), 2)} return res_dctlst = ['h', 2, 'e', 0, 'm', 1]print(Convert(lst))