Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Create and Write in file ( in Python )
elena1234
Feb 10th, 2022
(
edited
)
145
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
with
open
(
"new_test.txt"
,
mode
=
"w"
)
as
file
:
file
.
write
(
"New Line
\n
"
)
with
open
(
"new_test.txt"
,
mode
=
"a"
)
as
file
:
file
.
write
(
"Second Line
\n
"
)
file
.
write
(
"Third Line
\n
"
)
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
C | 2 min ago | 0.24 KB
e
Batch | 5 min ago | 0.66 KB
задача о коммивояжёре с восстановлением ответ...
C++ | 7 min ago | 2.67 KB
ДЗ Толковый словарь
C# | 17 min ago | 1.08 KB
Disable_ULPS.reg
REG | 35 min ago | 0.44 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 37 min ago | 0.38 KB
Optimization_for_the_7000_series.reg
REG | 39 min ago | 0.76 KB
Untitled
C | 39 min ago | 1.87 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!