Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Dec 20th, 2018
28
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.31 KB
| None
|
0
0
raw
download
clone
embed
print
report
def
foo
(
some_list
)
:
li
=
[
]
for
i
in
range
(
len
(
some_list
)
)
:
li.
append
(
some_list
[
i
]
* some_list
[
-i-
1
]
)
return
li
>>>
print
(
foo
(
[
1
,
2
,
3
,
4
,
5
]
)
)
[
5
,
8
,
9
,
8
,
5
]
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide May 2024 FIX 💰
GetText | 13 min ago | 0.38 KB
hi mum dad
JavaScript | 14 min ago | 0.08 KB
PV Power Plant - Battery
JSON | 16 min ago | 6.86 KB
Untitled
JavaScript | 19 min ago | 0.06 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 23 min ago | 0.39 KB
mengontrol kecepatan motor DC Drone
C++ | 34 min ago | 1.52 KB
Untitled
CSS | 1 hour ago | 0.89 KB
New Page (Novely)
Dart | 1 hour ago | 3.04 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!