# skbio.core.sequence.RNASequence.__eq__¶

RNASequence.__eq__(other)[source]

The equality operator.

Parameters: other : BiologicalSequence The sequence to test for equality against. bool Indicates whether self and other are equal.

Notes

BiologicalSequences are equal if their sequence is the same and they are the same type.

Examples

>>> from skbio.core.sequence import BiologicalSequence
>>> s = BiologicalSequence('GGUCGUGAAGGA')
>>> t = BiologicalSequence('GGUCGUGAAGGA')
>>> s == t
True
>>> u = BiologicalSequence('GGUCGUGACCGA')
>>> u == t
False