Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Operator overloading
banovski
Apr 20th, 2022
(
edited
)
998
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
⭐ FREE giftcards method⭐ 0A
JavaScript | 3 sec ago | 0.18 KB
⭐ FREE giftcards method⭐ Q8
JavaScript | 3 sec ago | 0.18 KB
⭐ Binance Account hack 9U
JavaScript | 10 sec ago | 0.18 KB
⭐ get any gift card for FREE⭐ 90
JavaScript | 11 sec ago | 0.18 KB
⭐ get any gift card for L5
JavaScript | 13 sec ago | 0.18 KB
⭐ get any gift card for FREE⭐ O4
JavaScript | 18 sec ago | 0.18 KB
⭐️ EARN $500 INSTANTLY QN
JavaScript | 19 sec ago | 0.18 KB
⭐ FREE giftcards method⭐ Q8
JavaScript | 28 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!