Skip to content

Commit d99d984

Browse files
committed
Added python solutions
1 parent 6f6a690 commit d99d984

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
- [List Comprehensions](https://www.hackerrank.com/challenges/list-comprehensions/problem?isFullScreen=true) | [Solution](hackerrank/python/basic_data_types/list_comprehensions.py)
1616
- [Find the runner-up score](https://www.hackerrank.com/challenges/find-second-maximum-number-in-a-list/problem?isFullScreen=true) | [Solution](hackerrank/python/basic_data_types/runner_up_score.py)
1717
- [Finding the percentage](https://www.hackerrank.com/challenges/finding-the-percentage/problem?isFullScreen=true) | [Solution](/hackerrank/python/basic_data_types/finding_the_percentage.py)
18+
- [Tuples](https://www.hackerrank.com/challenges/python-tuples/problem) | [Solution](hackerrank/python/basic_data_types/tuples.py)
1819
- Strings
1920
- [Swap case](https://www.hackerrank.com/challenges/swap-case/problem?isFullScreen=true) | [Solution](hackerrank/python/strings/swap_case.py)
2021

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
if __name__ == '__main__':
2+
n_length = input()
3+
# Get the input list
4+
n = str(input())
5+
# Convert it to list of integers
6+
nums = [int(x) for x in n.split()]
7+
# Convert to tuple datatype and print the has value
8+
t = tuple(nums)
9+
print(hash(t))

0 commit comments

Comments
 (0)