Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
get item from index_in sublist
ehoho
Aug 7th, 2017
784
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.12 KB
| None
|
0
0
raw
download
clone
embed
print
report
a
=
[
[
1
,
2
,
3
,
4
]
,
[
5
,
6
,
7
]
]
b_index
=
[
1
,
0
]
lst
=
[
]
for
ls
,
indx
in
zip
(
a
,
b_index
)
:
sub
=
[
ls
[
indx
]
]
lst.
append
(
sub
)
OUT
=
lst
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
OoT rando seed 6/13
55 min ago | 202.05 KB
w
18 hours ago | 0.09 KB
[email protected]
- idiot sending fr...
19 hours ago | 1.35 KB
Untitled
23 hours ago | 0.03 KB
Checking in availability
1 day ago | 0.66 KB
TRMP TOKEN
1 day ago | 1.56 KB
Untitled
1 day ago | 0.16 KB
my-push Script
1 day ago | 0.19 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!