Different elected offices have different terms. The President and senators serve six years, while federal deputies serve three years. Governors generally serve six years, and municipal terms vary by state law.
For exam-style study, the most important fixed facts are the presidential sexenio, senators at six years, and deputies at three years.