Skip to content

Instantly share code, notes, and snippets.

@lucmann
Created December 5, 2019 03:58
Show Gist options
  • Save lucmann/c8b4749f46dbcc812c06432cc1abc5e6 to your computer and use it in GitHub Desktop.
Save lucmann/c8b4749f46dbcc812c06432cc1abc5e6 to your computer and use it in GitHub Desktop.
one line to calculate the sum of POT
sum(x for x in list(map(lambda n: 2**n * 2**n, range(13))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment