Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 19th, 2019
81
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
text = 'ABAABA'
d = {}
for b in text:
d[b] = d.get(b, 0) + 1
print(d)
{'A': 4, 'B': 2}
a = ["A","A","A","B","A","B"]
b = set(a)
c = {}
for i in b:
c[i] = a.count(i)
print(c)
Add Comment
Please,
Sign In
to add comment
Public Pastes
Cobblestone Gen
Lua | 5 min ago | 0.42 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 6 min ago | 0.38 KB
Servo Control rev_02
Arduino | 9 min ago | 2.65 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 36 min ago | 0.39 KB
snad korektni merge AR s minimax
Python | 58 min ago | 3.98 KB
analytics_error
JSON | 1 hour ago | 2.66 KB
updated_ms_spyware_host_list
BrainFuck | 1 hour ago | 1.34 KB
Gerenciador de Senhas 2
Python | 1 hour ago | 9.12 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!