Answer to Question #242863 in Python for hari

Question #242863

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.


1
Expert's answer
2021-09-27T02:59:22-0400
print(sorted(list({int(x) for x in input() if x.isdigit()})))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS