File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
hackerrank/python/basic_data_types Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 ))
You can’t perform that action at this time.
0 commit comments