Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
dicttrans
Peaser
Aug 26th, 2015
578
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
def
dictTrans
(
string
,
dict
)
:
for
i
in
dict
:
string
=
string
.
replace
(
i
,
dict
[
i
]
)
return
string
test
=
"hello, world!"
tab
=
{
"hello"
:
"goodbye"
}
print
dictTrans
(
test
,
tab
)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
My Amazon Shoppe
2 min ago | 0.40 KB
Changelly Hacked
CSS | 27 min ago | 0.99 KB
Exploit Documentation
CSS | 27 min ago | 0.99 KB
Exploit found by AI
CSS | 27 min ago | 0.99 KB
FREE COINS METHOD
CSS | 28 min ago | 0.99 KB
How to hack an exchange
CSS | 28 min ago | 0.99 KB
Untitled
2 hours ago | 0.42 KB
.zshrc
Bash | 2 hours ago | 1.23 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!