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)
PREVIOUS
NEXT
Tagged:
#python
#write
#file
ADD COMMENT
Topic
COMMENT
Name
8+3 =
Submit