Skip to content

Instantly share code, notes, and snippets.

@Cyborg-Model-Z
Created July 10, 2019 14:49
Show Gist options
  • Select an option

  • Save Cyborg-Model-Z/439d186ba324c8bba73ee72ffa986d8f to your computer and use it in GitHub Desktop.

Select an option

Save Cyborg-Model-Z/439d186ba324c8bba73ee72ffa986d8f to your computer and use it in GitHub Desktop.
@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