QUICK ANSWER
"Yes" is an interjection which is often translated as "sí", and "I know how to swim" is a phrase which is often translated as "sé nadar". Learn more about the difference between "yes" and "I know how to swim" below.
yes(
yehs
)An adverb is a word that describes a verb, an adjective, or other adverbs (e.g., to run quickly, very tired).
An interjection is a short utterance that expresses emotion, hesitation, or protest (e.g., Wow!).
A noun is a word referring to a person, animal, place, thing, feeling, or idea (e.g., man, dog, house).
I know how to swim(
ay
no
hau
duh
swihm
)