Most Italian verbs fall into one of three categories: those ending in are, those ending in ere, and those ending in ire. How a verb is inflected depends on what category it belongs to.
A simple way to inflect an Italian verb is: delete the are/ere/ire ending to get the verb base, append a part specific to its category, and append a part common to all verbs. For example, this is the Present Simple of three verbs for the plural you (Italian voi):
Create a function that takes in three parameters and returns an inflected verb with the appropriate pronoun. The input will be an Italian verb, a person (first, second, third) and a number (singular, plural).
You'll be given three dictionaries: one with the Italian pronouns, one with the common part, and one with the specific part. For the first two, the number will be nested within the person. For the third, you will also find lists as values for the specific part of verbs ending in are, ere, and ire respectively.
inflect("amare", "first", "pl") ➞ "Noi amiamo"
# Pronoun: "Noi" + verb base: "am" + specific part: "ia" + common part: "mo"
inflect("credere", "third", "sing") ➞ "Lui/Lei crede"
# Pronoun: "Lui/Lei" + verb base: "cred" + specific part: "e" + common part: None
inflect("dormire", "sec", "pl") ➞ "Voi dormite"
# Pronoun: "Voi" + verb base: "dorm" + specific part: "i" + common part: "te"
pronomi.verbi_spec.verbi_com.