Task 5
Completion requirements
Opened: бейсенбі, 31 қазан 2024, 12:00 AM
Exercise 5 (and Solution)
Take two lists, say for example these two:
and write a program that returns a list that contains only the elements that are common between the lists (without duplicates). Make sure your program works on two lists of different sizes.
Extras:
- Randomly generate two lists to test this
- Write this in one line of Python (don’t worry if you can’t figure this out at this point - we’ll get to it soon)