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))
Not registered? Create an account
Forgot Password?
Already a registered user? Login