Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jul 20th, 2017
137
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
s
=
'aaaabbсaaakkkkkkz'
c
=
1
for
i
in
range
(
1
,
len
(
s
)
)
:
if
s
[
i-
1
]
==
s
[
i
]
:
c +
=
1
else
:
print
(
s
[
i-
1
]
,
c
,
sep
=
''
,
end
=
''
)
c
=
1
print
(
s
[
i
]
,
c
,
sep
=
''
,
end
=
''
)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Twilight Forest error
1 hour ago | 13.97 KB
Evilcraft error
1 hour ago | 15.79 KB
JAMD error
1 hour ago | 15.78 KB
Untitled
2 hours ago | 11.69 KB
Untitled
6 hours ago | 11.64 KB
Untitled
10 hours ago | 7.44 KB
Untitled
12 hours ago | 7.84 KB
Dimenticatevi del cambio di regime.
13 hours ago | 10.71 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!