DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python write file
with
open
(
"file.txt"
,
"w"
)
as
file
:
for
line
in
[
"hello"
,
"world"
]
:
file
.
write
(
line
)
Source by www.pythonforbeginners.com #
PREVIOUS
NEXT
Tagged:
#python
#write
#file
ADD COMMENT
Topic
COMMENT
Name
1+2 =
Submit