Tuples | HackerRank PYTHON | hash() function |

Pubblicato il: 06 giugno 2019
sul canale di: Ultimate Gamer
2,367
8

Task

Given an integer, n and n space-separated integers as input, create a tuple t , of those n integers. Then compute and print the result of hash(t) .

Input Format

The first line contains an integer,n , denoting the number of elements in the tuple.
The second line contains n space-separated integers describing the elements in tuple t.

Output Format

Print the result of hash(t).

Sample Input 0

2
1 2
Sample Output 0

3713081631934410656

Note: hash() is one of the functions in the _builtins_ module, so it need not be imported.


In questa pagina del sito puoi guardare il video online Tuples | HackerRank PYTHON | hash() function | della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Ultimate Gamer 06 giugno 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,367 volte e gli è piaciuto 8 spettatori. Buona visione!