Skip to content

Instantly share code, notes, and snippets.

@libert-xyz
Created June 29, 2016 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save libert-xyz/5c39e577f351d4be9a9317fb95bd3e77 to your computer and use it in GitHub Desktop.
Save libert-xyz/5c39e577f351d4be9a9317fb95bd3e77 to your computer and use it in GitHub Desktop.
tuple
#https://www.hackerrank.com/challenges/python-tuples
#06/29/16
#map(function, iterable, ...)
#Return an iterator that applies function to every item of iterable, yielding the results. If additional iterable arguments are passed, function must take that many arguments and is applied to the items from all iterables in parallel. With multiple iterables, the iterator stops when the shortest iterable is exhausted. For cases where the function inputs are already arranged into argument tuples, see itertools.starmap().
input()
print (hash(tuple(map(int, input().split(" ")))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment