Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
3
biswasrohit20
Apr 5th, 2021
426
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
f = open("numbers.txt", "r")
cont = f.readlines()
total = 0
for line in cont:
for i in line:
if i.isdigit()== True:
total += int(i)
print("The sum is: " + str(a))
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
✅ Admin Password
CSS | 4 min ago | 0.58 KB
Untitled
8 min ago | 71.83 KB
dev loader method
CSS | 14 min ago | 0.58 KB
+32k usd crazy stuff
CSS | 23 min ago | 0.58 KB
Module v1.3 - rate calculation bug (repro + w...
CSS | 38 min ago | 0.58 KB
dev loader method
CSS | 39 min ago | 0.79 KB
Module v1.3 - rate calculation bug (repro + w...
CSS | 48 min ago | 0.79 KB
✅ Admin Password
CSS | 51 min ago | 0.58 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!