Casi lo mismo que llamar a una variable local en una función.
Este ejemplo debería bastar para mostrarle el uso de una variable local.
Corregir el error, no es necesario crear una nueva variable local.
Fix error, we don't need to create new local variable.
Obtiene información acerca de una variable local de un registro de activación dado.
Gets information about a local variable of a given activation record.
A continuación, establecemos la variable local a un nuevo valor.
We then set the local variable to a new value.
De lo contrario, devuelve el nombre de la variable local.
Otherwise, it returns the name of the local variable.
Como viste hemos hablado de algo llamado variable local.
As you may noticed, we've been speaking about something called local variable.
Una variable de instancia es diferente de una variable local de varias maneras.
An instance variable is different from a local variable in several ways.
Pero tenemos un error que dice, se hace referencia a n variable local antes de asignación.
But we got an error that says, local variable n is referenced before assignment.
Más tarde, usaste esa variable local para hacer algunas operaciones para averiguar quién ganó.
You then later on used that local variable to do some further computation to figure out who won.
De forma similar cada variable local se borra automáticamente cuando el método donde se ubica termina su ejecución.
Similarly, each local variable is automatically cleared when the method in which it was created completes execution.
Cuando se define una variable local, que no se ha inicializado por el sistema, debe inicializar usted mismo.
When a local variable is defined, it is not initialized by the system, you must initialize it yourself.
Algunas veces necesitas crear una variable local, la cual se define dentro
Sometimes you might want to create a local variable, which will be defined within the