We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Basic Data Types
- Tuples
- Discussions
Tuples
Tuples
Sort by
recency
|
1839 Discussions
|
Please Login in order to post a comment
if name == 'main': n = int(raw_input()) integer_list = map(int, raw_input().split()) use python 2 t = tuple(integer_list) print(hash(t))
use python 2 in above option if name == 'main': n = int(raw_input()) integer_list = map(int, raw_input().split()) res = hash(tuple(integer_list)) print(res)
use python 2 in above option
Python 3 generates random hash number every time. Its impossible to match the answer. Please Use Python 2
Use python 2