In Spanish, verbs change according to the person we're talking about. Something similar happens in English when we use the third person singular pronouns he/she:
I run
You run
He/She runs
Spanish is similar, the suffix changes depending on who we're talking about. Your task is to write a function called conjugate which will return a Spanish verb in all of its conjugations.
Examples
conjugate(comer)
["como", "comes", "come", "comemos", "coméis", "comen"]
conjugate(vivir)
["vivo", "vives", "vive", "vivimos", "vivís", "viven"]
Tests
conjugate(comer)
conjugate(bailar)
conjugate(caminar)
Good luck!
This challenge comes from Phares on CodeWars. Thank you to CodeWars, who has licensed redistribution of this challenge under the 2-Clause BSD License!
Want to propose a challenge idea for a future post? Email yo+challenge@dev.to with your suggestions!