Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Transcript sequence extractor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
zavolan_group
tools
Transcript sequence extractor
Commits
acf7b939
Commit
acf7b939
authored
2 years ago
by
Samuel Mondal
Browse files
Options
Downloads
Patches
Plain Diff
Docstring addition
parent
5d34c21b
No related branches found
No related tags found
1 merge request
!18
Docstring addition
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sequence_extractor/list_to_file.py
+13
-1
13 additions, 1 deletion
sequence_extractor/list_to_file.py
with
13 additions
and
1 deletion
sequence_extractor/list_to_file.py
+
13
−
1
View file @
acf7b939
def
list_to_file
(
to_write_to_file
,
filename
):
def
list_to_file
(
to_write_to_file
:
str
,
filename
:
str
,
)
->
None
:
"""
Creates a file from a list that is input to the function.
Args:
to_write_to_file: The list that you want to write to a file.
filename: The name you want the output file to have (also include the extension of the file while calling the function).
Returns:
Nothing, since it outputs a file directly to the working directory
"""
file
=
open
(
filename
,
'
a
'
)
for
item
in
to_write_to_file
:
file
.
write
(
item
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment