Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

check if the 3 lists contain the same items and if any of the lists contain duplicates

0 votes
asked Oct 31, 2021 by rafciu41 (120 points)
start by defining two variables list1 = , list2 =
[1,2,3,4,5], list3 = [1,2,2,3,3,4,5]
Write a script that, using the set data structure, will examine whether list1, list2, and list3
contain the same elements, and whether any of the lists contain duplicates.

1 Answer

0 votes
answered Oct 31, 2021 by Peter Minarik (82,920 points)
What language are you after? Python perhaps?

Please share your code what you've done so far and we'll be happy to help you where you got stuck.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.