Skip to content

Instantly share code, notes, and snippets.

@mrlesmithjr
Last active January 31, 2019 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrlesmithjr/23bf05fa14cb3b39e979f47a41d20a62 to your computer and use it in GitHub Desktop.
Save mrlesmithjr/23bf05fa14cb3b39e979f47a41d20a62 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
VBROWNBAG_CREW=dict()
VAR="vBrownBag"
LIST=['Ken', 'Chris', 'Graham']
for index, value in enumerate(LIST):
VBROWNBAG_CREW[value] = index
OUTPUT = {VAR: VBROWNBAG_CREW }
print(OUTPUT)
@mrlesmithjr
Copy link
Author

mrlesmithjr commented Jan 31, 2019

{'vBrownBag': {'Chris': 1, 'Ken': 0, 'Graham': 2}}

@mistwire
Copy link

"and knowing is half the battle!"

<G. I. Joooooooeeeeee>!

@mrlesmithjr
Copy link
Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment