Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Apr 25th, 2019
17
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
x = input()
i = 0
cnt = 1
while (i < len(x)) :
if (x[i] == x[i+1]) :
cnt = cnt + 1
else:
print(x[i], end='')
print(cnt, end='')
Add Comment
Please,
Sign In
to add comment
Public Pastes
ESP32 Influxdb
C++ | 21 min ago | 3.13 KB
Untitled
C++ | 35 min ago | 6.45 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 58 min ago | 0.39 KB
2024-05-08_stats.json
JSON | 1 hour ago | 5.18 KB
2024-05-08_stats.json
JSON | 1 hour ago | 5.17 KB
2024-05-08_stats.json
JSON | 1 hour ago | 5.14 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 1 hour ago | 0.38 KB
"Servo Control" rev_01
Arduino | 1 hour ago | 2.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!