from Bio import SeqIO

# Function to read sequences from a FASTA file and print description and sequence
def read_fasta(file_path):
    # Parse the FASTA file
    for record in SeqIO.parse(file_path, "fasta"):
        # Print the description (header) and sequence
        print(f"Description: {record.description}")
        print(f"Sequence: {record.seq}")
        print()  # Print a blank line between records

# Specify the path to your FASTA file
fasta_file = "example.fasta"  # Replace with your actual file path

# Call the function to read and print the sequence data
read_fasta(fasta_file)

# Example FASTA file (example.fasta):
# >seq1 This is the description for sequence 1
# ATGCATGCGTACGTAGCTA
# >seq2 This is the description for sequence 2
# GCTAGCTAGCTAGCTA

# Expected Output:
# Description: seq1 This is the description for sequence 1
# Sequence: ATGCATGCGTACGTAGCTA
#
# Description: seq2 This is the description for sequence 2
# Sequence: GCTAGCTAGCTAGCTA