def write_fastq(reads_list, filename):
    'This function created a FASTQ file from a list of read generated by the reads_generator function.\n    Key Arguments:\n        reads_list -- list of reads generated with reads_generator.\n        filename -- name of output file WITH EXTENSION.\n    '
    with open(filename, 'w') as fastq_file:
        for (read_id, read) in reads_list:
            fastq_file.write('@{}\n'.format(read_id))
            fastq_file.write((read + '\n'))
            fastq_file.write('+\n')
            fastq_file.write((('I' * len(read)) + '\n'))
This function created a FASTQ file from a list of read generated by the reads_generator function.
Key Arguments:
    reads_list -- list of reads generated with reads_generator.
    filename -- name of output file WITH EXTENSION.
def write_fastq(reads_list, filename):
    'This function created a FASTQ file from a list of read generated by the reads_generator function.\n    Key Arguments:\n        reads_list -- list of reads generated with reads_generator.\n        filename -- name of output file WITH EXTENSION.\n    '
    with open(filename, 'w') as fastq_file:
        for (read_id, read) in reads_list:
            fastq_file.write('@{}\n'.format(read_id))
            fastq_file.write((read + '\n'))
            fastq_file.write('+\n')
            fastq_file.write((('I' * len(read)) + '\n'))