Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ write_to_file
Function
write_to_file
testlines.py:12–14 ·
view source on GitHub ↗
(filename, txt)
Source
from the content-addressed store, hash-verified
10
11
12
def
write_to_file(filename, txt):
13
with
open(filename,
"w"
)
as
file_object:
14
s = file_object.write(txt)
15
16
17
if
__name__ ==
"__main__"
:
Callers
1
testlines.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected