Program to find length of a set.

Code:

A = {0, 2, 4, 6, 8, 10};

B = {12, 14, 16, 18, 20, 22, 24, 26, 28, 30}

print("Set A: ",A)

print("Set B: ",B)

print("Length of Set A:",len(A))

print("length of Set B:",len(B))

 

Output:

Comments

Popular posts from this blog

State use of pep and pip