Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Wspólne elementy
Rementai
Mar 16th, 2023
221
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
def
common_elements
(
s1
,
s2
)
:
list
=
(
[
x
for
x
in
set
(
s1
)
if
x
in
set
(
s2
)
]
)
return
list
s1
=
(
3
,
3
,
4
,
5
)
s2
=
(
3
,
3
,
2
,
5
)
print
(
common_elements
(
s1
,
s2
)
)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Bitcoin is Amazing
1 hour ago | 0.12 KB
Roblox Scripts
6 hours ago | 0.02 KB
December smells like money
6 hours ago | 0.06 KB
Decentralized Moneys
7 hours ago | 0.42 KB
Bitcoin
7 hours ago | 0.23 KB
Untitled
8 hours ago | 13.75 KB
Untitled
8 hours ago | 0.06 KB
Untitled
13 hours ago | 3.86 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!