Created
May 20, 2020 19:17
-
-
Save h4ndzdatm0ld/42ecc0ebec573e89b417cf3a2684dfdd to your computer and use it in GitHub Desktop.
dictconvert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def dictconvert(lst): | |
res_dct = {lst[i]: lst[i + 1] for i in range(0, len(lst), 2)} | |
return res_dct |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment