47 Program applying functions on SET in Python

Program:

#applying functions on set

x={40,10,30,20,50}

print(x)

print(type(x))

print(len(x))

print(sum(x))

print(max(x))

print(min(x))

print(sorted(x))


Output:

Program applying functions on SET in Python

Previous
Next Post »