Skip to content
Snippets Groups Projects
Commit 367f7bfc authored by Samuel Mondal's avatar Samuel Mondal
Browse files

minor changes to directory structure

parent 50a21532
No related branches found
No related tags found
1 merge request!58minor changes to directory structure
def list_to_file(
to_write_to_file: list,
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 fasta 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)
file.close()
\ No newline at end of file
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment