Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 23rd, 2019
70
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.11 KB
| None
|
0
0
raw
download
clone
embed
print
report
# Partition a list into N groups
lst = [1,2,3,4]
print zip(*[iter(lst)]*2)
"""
Output:
[(1, 2), (3, 4)]
"""
Add Comment
Please,
Sign In
to add comment
Public Pastes
CC Mekanism Induction Battery Monitoring V2
Lua | 17 min ago | 6.67 KB
Задача 4
Python | 20 min ago | 0.68 KB
Задача 3
Python | 21 min ago | 1.05 KB
RMS BACKUP 5/10/24
CSS | 22 min ago | 5.64 KB
simulate_movement
Python | 28 min ago | 2.68 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 46 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 53 min ago | 0.39 KB
Prac №4
ASM (NASM) | 53 min ago | 19.46 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!