Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Nov 23rd, 2017
74
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.25 KB
| None
|
0
0
raw
download
clone
embed
print
report
1
2
3
23
33
55
1
2
4
...
data_tot = []
with open('file.txt', 'r') as infile:
for line in infile:
if line.rstrip() != '':
data = []
data.append(line.rstrip())
else:
data_tot.append(data)
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 7 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 25 min ago | 0.39 KB
subhuman's sym code
Lisp | 33 min ago | 0.14 KB
Untitled
ARM | 35 min ago | 0.43 KB
threading2
Python | 55 min ago | 2.75 KB
Untitled
Java | 1 hour ago | 0.18 KB
Custom Doom GZdoom zscript sounds
Bash | 1 hour ago | 1.24 KB
Doom zscript gzdoom sound file creator
Bash | 1 hour ago | 0.15 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!