print fastq from sam

def sam2fastq(line):
    """
    print fastq from sam
    """
    fastq = []
    fastq.append('@%s' % line[0])
    fastq.append(line[9])
    fastq.append('+%s' % line[0])
    fastq.append(line[10])
    return fastq