Q:

Write a Python program to convert a pair of values into a sorted unique array

0

Write a Python program to convert a pair of values into a sorted unique array.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

L = [(1, 2), (3, 4), (1, 2), (5, 6), (7, 8), (1, 2), (3, 4), (3, 4),
 (7, 8), (9, 10)]
print("Original List: ", L)
print("Sorted Unique Data:",sorted(set().union(*L)))

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now