Created
September 1, 2018 00:59
-
-
Save nickgrier07/917f2f8784df02aab9639dba675a7e01 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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