Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Operator overloading
banovski
Apr 20th, 2022
(
edited
)
1,089
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
Make $2200 in 15 minutes F
JavaScript | 1 min ago | 0.07 KB
✅ MAKE $22OO IN 10 MIN 0
JavaScript | 6 min ago | 0.07 KB
Make 3500$ in 20 MIN [Method] 3
JavaScript | 7 min ago | 0.07 KB
Make $2000 in 15 minutes 0
JavaScript | 8 min ago | 0.07 KB
MAKE $1000 INSTANTLY P
JavaScript | 9 min ago | 0.07 KB
MAKE $5000 INSTANTLY S
JavaScript | 9 min ago | 0.07 KB
✅ MAKE $22OO IN 10 MIN 0
JavaScript | 10 min ago | 0.07 KB
✅ MAKE $22OO IN 10 MIN O
JavaScript | 11 min ago | 0.07 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!