Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Operator overloading
banovski
Apr 20th, 2022
(
edited
)
1,115
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
📌 Swapzone +37% glitch ⭐ 2
JavaScript | 5 sec ago | 0.25 KB
✅⭐ Make huge profits on trading ⭐⭐ E
JavaScript | 6 sec ago | 0.25 KB
✅⭐ Make huge profits on trading ⭐⭐ 9
JavaScript | 14 sec ago | 0.25 KB
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 15 sec ago | 0.25 KB
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 23 sec ago | 0.25 KB
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ Y
JavaScript | 24 sec ago | 0.25 KB
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ A
JavaScript | 33 sec ago | 0.25 KB
⭐✅ Exploit 2500$ in 15 Minutes⭐⭐⭐ 8
JavaScript | 34 sec ago | 0.25 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!