Created
July 10, 2019 14:49
-
-
Save Cyborg-Model-Z/439d186ba324c8bba73ee72ffa986d8f 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
| @camsbury | |
| In this kata my goal is to take a list of ints and return each int *2. It looks like I need to remove duplicates first. I was thinking of converting to a dict and then changing back to a list, as an internet example suggested, but wondered if you had another way | |
| [1,1,3,3,7,8] should return [2,6,14,16] | |
| ``` | |
| def remove_duplicates(a): | |
| def mapit(a): | |
| map(maps,a) | |
| ``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment