Skip to content

Instantly share code, notes, and snippets.

@nickgrier07
Created September 1, 2018 00:59
Show Gist options
  • Select an option

  • Save nickgrier07/917f2f8784df02aab9639dba675a7e01 to your computer and use it in GitHub Desktop.

Select an option

Save nickgrier07/917f2f8784df02aab9639dba675a7e01 to your computer and use it in GitHub Desktop.
def return_keys(*keys):
ckeys = list(keys)
return ckeys
def return_values(*values):
cvalues = list(values)
return cvalues
def fold_dict(keys,values):
tdict = dict(zip(keys, values))
return tdict
keys = return_keys('first', 'second', 'third')
values = return_values("harry","dick","balls")
tdict = fold_dict(keys,values)
print(tdict)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment