Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Operator overloading
banovski
Apr 20th, 2022
(
edited
)
990
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.24 KB
| None
|
0
0
raw
download
clone
embed
print
report
class
MyList:
def
__init__
(
self
,
list
)
:
self
.
list
=
list
def
__sub__
(
self
,
arg
)
:
self
.
list
.
remove
(
arg
)
return
self
.
list
myList
=
MyList
(
[
1
,
2
,
3
]
)
print
(
myList -
2
)
# результат -- [1, 3]
Add Comment
Please,
Sign In
to add comment
Public Pastes
Brazzers accounts
JavaScript | 1 sec ago | 0.09 KB
Binance Accounts Leaked
JavaScript | 1 sec ago | 0.09 KB
Binance Accounts Leaked
JavaScript | 2 sec ago | 0.09 KB
⭐ FREE giftcards method⭐ TK
JavaScript | 4 sec ago | 0.18 KB
Amazon Gift cards LEAKED
JavaScript | 4 sec ago | 0.09 KB
Leaked by Zak
JavaScript | 7 sec ago | 0.09 KB
Brazzers accounts
JavaScript | 7 sec ago | 0.09 KB
⭐ Binance Account hack 7F
JavaScript | 9 sec ago | 0.18 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!