Program - Given an integer, , and space-separated integers as input, create a tuple, , of those integers. Then compute and print the result of .


Topic: Program - Given an integer, , and space-separated integers as input, create a tuple, , of those integers. Then compute and print the result of .

Solution

def hashing(num):
    T = tuple([int(i) for i in num.split()])
    return hash(T)
print(hashing(23456))



List all Python Programs