Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jul 20th, 2017
129
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
import
re
def
zip_dna
(
dna
)
:
return
''
.
join
(
map
(
lambda
x: x
[
0
]
+
str
(
len
(
x
[
0
]
+ x
[
1
]
)
)
,
re
.
findall
(
r
'([a-zA-z])(
\1
*)'
,
dna
)
)
)
print
(
zip_dna
(
input
(
)
)
)
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
Java | 19 min ago | 1.38 KB
Untitled
Java | 55 min ago | 2.74 KB
Untitled
JavaScript | 1 hour ago | 3.76 KB
DiceGames.lua
Lua | 1 hour ago | 8.99 KB
k-я единица ДО
C++ | 1 hour ago | 0.55 KB
DLL Loader
C++ | 2 hours ago | 9.83 KB
initupdate.lua
Lua | 2 hours ago | 1.13 KB
Untitled
CSS | 2 hours ago | 84.36 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!