This is the 5th exercise of practicepython
Exercise:
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
For loop Solution
One line Solution:
output:
GitHub Reference:
Github code for loop:
github code for single line:
https://gist.github.com/pinkpretty/ac7ace0e48d519456cd59c1e4a97465a
https://gist.github.com/pinkpretty/b6f1762efcb37a4f69e6f576505e7e39
Happy coding ! :)
1xbet korean ✔️ 1xbet korean ✔️ 1xbet korean - Legalbet
ReplyDeleteIn betting, one or скачать 1xbet more bets will be added to your wager before the match. This is a type of bet, in which the winner will place a bet of 1x