Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
# weighted_list.py
here2share
Mar 18th, 2019
284
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.13 KB
| None
|
0
0
raw
download
clone
embed
print
report
# weighted_list.py
items
=
{
"a"
:
10
,
"b"
:
5
,
"c"
:
1
}
result
=
[
k
for
k
in
items
for
dummy
in
range
(
items
[
k
]
)
]
print
result
Add Comment
Please,
Sign In
to add comment
Public Pastes
Камрейч
JavaScript | 8 min ago | 0.61 KB
Untitled
FreeBasic | 11 min ago | 3.27 KB
train - startup.lua
Lua | 29 min ago | 0.19 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 33 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 36 min ago | 0.39 KB
routeros
INI file | 43 min ago | 13.00 KB
Untitled
JSON | 43 min ago | 17.42 KB
Algoritmi lezione 21 merge sort
C# | 55 min ago | 1.68 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!