Skip to content

Instantly share code, notes, and snippets.

@jvorcak
Created July 31, 2019 07:06
Show Gist options
  • Save jvorcak/848f7e0e7bdc23963b77120f13d3f254 to your computer and use it in GitHub Desktop.
Save jvorcak/848f7e0e7bdc23963b77120f13d3f254 to your computer and use it in GitHub Desktop.
d = {'a':'Apple', 'b':'Banana','c':'Carrot'}
a,b,c = [d[k] for k in ('a', 'b','c')]
a == 'Apple'
b == 'Banana'
c == 'Carrot'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment