Created
June 14, 2018 18:55
-
-
Save acwoss/0e9a0c64d226bce14461a6483117e7ca to your computer and use it in GitHub Desktop.
FavoriteColdCondition created by acwoss - https://repl.it/@acwoss/FavoriteColdCondition
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
data = ['Joao', '83889023', 'Maria', '81944356', 'Marcos', '32258899', 'Ana', '88235423', 'George', '1254345', 'Rafaela', '8899345671', 'Pedro', '83223345', 'Aline', '842234565', 'Carlos', '83554463', 'Julia', '13565446', 'Murilo', '23543646', 'Mayra', '233253425', 'Italo', '842142543', 'Rita', '3253464457', 'Aldo', '77443456', 'Raquel', '8384423553', 'Henrique', '88342235', 'Joyce', '987676342', 'Daniel', '3253456346', 'Livia', '325346634', 'Pablo', '87461723', 'Carla', '87351236'] | |
def pairwise(iterable): | |
it = iter(iterable) | |
return zip(it, it) | |
name_map = {number: name for name, number in pairwise(data)} | |
print(name_map) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment