Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
to_int functional approarch
DeaD_EyE
Mar 30th, 2017
481
0
Never
1
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
def
to_int
(
st
)
:
"""Returns an integer"""
if
not
st.
isdigit
(
)
:
raise
ValueError
return
sum
(
(
d -
0x30
)
*
10
** n
for
n
,
d
in
enumerate
(
reversed
(
st.
encode
(
)
)
)
)
)
Advertisement
Comments
User was banned
Add Comment
Please,
Sign In
to add comment
Public Pastes
Free $$$ Mehtod
CSS | 4 min ago | 0.71 KB
Free money docs
CSS | 4 min ago | 0.71 KB
2 Day in +12.000$
CSS | 4 min ago | 0.71 KB
Instant Profits with Crypto
CSS | 5 min ago | 0.71 KB
Documents
51 min ago | 0.43 KB
+12,000$ in 2 days
CSS | 51 min ago | 0.72 KB
Free Crypto Method
CSS | 52 min ago | 0.72 KB
Crypto admin access
52 min ago | 0.43 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!