Answer:
Input : list1 = [1, 2, 3, 4, 5]
list2 = [5, 6, 7, 8, 9]
Output : {5}
Explanation: The common element of the lists is 5.
list2 = [6, 7, 8, 9]
Output : No common elements
Explanation: They do not have any
elements in common in between them
Copyright © 2024 EHUB.TIPS team's - All rights reserved.
Answers & Comments
Answer:
Input : list1 = [1, 2, 3, 4, 5]
list2 = [5, 6, 7, 8, 9]
Output : {5}
Explanation: The common element of the lists is 5.
Input : list1 = [1, 2, 3, 4, 5]
list2 = [6, 7, 8, 9]
Output : No common elements
Explanation: They do not have any
elements in common in between them