|
1 | | -função (*function*) |
2 | | - A named sequence of statements that performs some useful operation. Functions may or may not take arguments and may or may not produce a result. |
3 | | - |
4 | | -definição de função (*function definition*) |
5 | | - A statement that creates a new function, specifying its name, parameters, and the statements it contains. |
6 | | - |
7 | | -objeto-função (*function object*) |
8 | | - A value created by a function definition. The name of the function is a variable that refers to a function object. |
9 | | - |
10 | | -cabeçalho (*header*) |
11 | | - The first line of a function definition. |
12 | | - |
13 | | -corpo (*body*) |
14 | | - The sequence of statements inside a function definition. |
15 | | - |
16 | | -parâmetro (*parameter*) |
17 | | - A name used inside a function to refer to the value passed as an argument. |
18 | | - |
19 | | -chamada de função (*function call*) |
20 | | - A statement that runs a function. It consists of the function name followed by an argument list in parentheses. |
21 | | - |
22 | | -argumento (*argument*) |
23 | | - A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function. |
24 | | - |
25 | | -variável local (*local variable*) |
26 | | - A variable defined inside a function. A local variable can only be used inside its function. |
27 | | - |
28 | | -valor devolvido (*return value*) |
29 | | - The result of a function. If a function call is used as an expression, the return value is the value of the expression. |
30 | | - |
31 | | -função produtiva (*fruitful function*) |
32 | | - A function that returns a value. |
33 | | - |
34 | | -procedimento (*void function*) |
35 | | - A function that always returns None. |
36 | | - |
37 | | -``None`` |
38 | | - A special value returned by void functions. |
39 | | - |
40 | | -módulo (*module*) |
41 | | - A file that contains a collection of related functions and other definitions. |
42 | | - |
43 | | -``import``, instrução (``import`` *statement*) |
44 | | - A statement that reads a module file and creates a module object. |
45 | | - |
46 | | -objeto-módulo (*module object*) |
47 | | - A value created by an import statement that provides access to the values defined in a module. |
48 | | - |
49 | | -notação de ponto (*dot notation*) |
50 | | - The syntax for calling a function in another module by specifying the module name followed by a dot (period) and the function name. |
51 | | - |
52 | | -composição (*composition*) |
53 | | - Using an expression as part of a larger expression, or a statement as part of a larger statement. |
54 | | - |
55 | | -fluxo de execução (*flow of execution*) |
56 | | - The order statements run in. |
57 | | - |
58 | | -diagrama de pilha (*stack diagram*) |
59 | | - A graphical representation of a stack of functions, their variables, and the values they refer to. |
60 | | - |
61 | | -*frame* () |
62 | | - A box in a stack diagram that represents a function call. It contains the local variables and parameters of the function. |
63 | | - |
64 | | -*traceback* () |
65 | | - A list of the functions that are executing, printed when an exception occurs. |
66 | | - |
0 commit comments