write a program to get given output for the given input.
input:[[1,2,3],[2],[3,4],[1,2,5,6],[5,7,8]]
output:[1,2,3,4,5,6,7,8]
in python.
print(sorted(list({int(x) for x in input() if x.isdigit()})))
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment