Skip to content

Instantly share code, notes, and snippets.

@bee-san
Created July 19, 2018 17:25
Show Gist options
  • Select an option

  • Save bee-san/6f60bcdf46379f8e3443516ed6fce705 to your computer and use it in GitHub Desktop.

Select an option

Save bee-san/6f60bcdf46379f8e3443516ed6fce705 to your computer and use it in GitHub Desktop.
x = [1, 2, 3, 4, 5]
print(list(map(lambda num: num * num, x)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment