Total Complexity | 5 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | """Tipos module.""" |
||
2 | |||
3 | from .. import MENSUAL, SEMESTRAL, CUATRIMESTRAL, TRIMESTRAL |
||
4 | |||
5 | |||
6 | def interes_mensual_simple(rate): |
||
|
|||
7 | return rate / MENSUAL |
||
8 | |||
9 | |||
10 | def interes_semestral_simple(rate): |
||
11 | return rate / SEMESTRAL |
||
12 | |||
13 | |||
14 | def interes_cuatrimestral_simple(rate): |
||
15 | return rate / CUATRIMESTRAL |
||
16 | |||
17 | |||
18 | def interes_trimestral_simple(rate): |
||
19 | return rate / TRIMESTRAL |
||
20 | |||
21 | |||
22 | def interes_anual_simple(rate, temp_mode): |
||
23 | return rate * temp_mode |
||
24 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.