DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
pythonwrite to file
file = open("directory/sample.txt", "w") file.write(“Hello World”) file.close()
Source by www.pythonforbeginners.com #
PREVIOUS
NEXT
Tagged:
#pythonwrite
#file
ADD COMMENT
Topic
COMMENT
Name
9+8 =
Submit