Creado por Troy Bowlin
hace más de 8 años
|
||
Pregunta | Respuesta |
Boolean Function | A function that returns a Boolean value. The only possible values of the bool type are False and True. |
Chatterbox Function | A function which interacts with the user (using input or print) when it should not. Silent functions that just convert their input arguments into their output results are usually the most useful ones. |
Composition (of functions) | Calling one function from within the body of another, or using the return value of one function as an argument to the call of another. |
Dead Code | Part of a program that can never be executed, often because it appears after a return statement. |
Fruitful Function | A function that yields a return value of None. |
Incremental Development | A program development plan intended to simplify debugging by adding and testing only a small amount of code at a time. |
None | A special Python value. One use in Python is that it is returned by functions that do not execute a return statement with a return argument. |
Return Value | The value provided as the result of a function call. |
Scaffolding | Code that is used during program development to assist with development and debugging. The unit test code that we added in this chapter are examples of scaffolding. |
Temporary Variable | A variable used to store an intermediate value in a complex calculation. |
Test Suite | A collection of tests for some code you have written. |
Unit Testing | An automatic procedure used to validate that individual units of code are working properly. Having a test suite is extremely useful when somebody modifies or extends the code: it provides a safety net against going backwards by putting new bugs into previously working code. The term regression testing is often used to capture this idea that we don't want to go backwards. |
¿Quieres crear tus propias Fichas gratiscon GoConqr? Más información.