QUICK ANSWER
"Yes" is an interjection which is often translated as "sí", and "you did it" is a phrase which is often translated as "lo hiciste". Learn more about the difference between "yes" and "you did it" 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).
you did it(
yu
dihd
iht
)A phrase is a group of words commonly used together (e.g., once upon a time).
a. lo hiciste (informal) (singular)
A word or phrase used to refer to the second person informal “tú” by their conjugation or implied context (e.g., How are you?).
A word or phrase that is singular (e.g., el gato).
I didn't have time to mow the lawn. I'm so glad you did it!No tuve tiempo para cortar el césped. ¡Qué bueno que lo hiciste tú!
b. lo hizo (formal) (singular)
A word or phrase used to refer to the second person formal “usted” by their conjugation or implied context (e.g., usted).
A word or phrase that is singular (e.g., el gato).
I'm amazed at you! You did it with so much ease.¡Me tiene sorprendido! Lo hizo con tanta facilidad.
c. lo lograste (informal) (singular)
A word or phrase used to refer to the second person informal “tú” by their conjugation or implied context (e.g., How are you?).
A word or phrase that is singular (e.g., el gato).
Congratulations! You did it!¡Felicidades! ¡Lo lograste!
d. lo logró (formal) (singular)
A word or phrase used to refer to the second person formal “usted” by their conjugation or implied context (e.g., usted).
A word or phrase that is singular (e.g., el gato).
The important thing is that you did it. It doesn't matter how.Lo importante es que lo logró, no importa cómo.
a. lo hicieron (plural)
A word or phrase that is plural (e.g., los libros).
You did it without any help. That's really praiseworthy.Lo hicieron sin ninguna ayuda. Eso tiene mucho mérito.
b. lo lograron (plural)
A word or phrase that is plural (e.g., los libros).
You're not dreaming. You did it! You defeated the champions!No están ustedes soñando. ¡Lo lograron! ¡Vencieron a los campeones!