defprotein_mass(sequence:str)->float:"""
Calculates the mass of a protein sequence.
Args:
sequence (str): The protein sequence.
Returns:
float: The mass of the protein.
Examples:
>>> protein_sequence = "SKADYEK"
>>> mass = protein_mass(protein_sequence)
>>> print(mass)
821.392
"""mass=0foramino_acidinsequence:mass+=MONOISOTOPIC_MASS_TABLE[amino_acid]returnmass