Skip to content

Commit f27028e

Browse files
author
Ignacio Avas
authored
Merge branch 'master' into master
2 parents 80d9edc + fa61a73 commit f27028e

File tree

23 files changed

+123
-107
lines changed

23 files changed

+123
-107
lines changed

.travis.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ deploy:
88
tags: true
99
password:
1010
secure: !!binary |
11-
cjQ4dU9TcGt6N0UxY1c1WnpZRHk0bEVkTWI2eFlhMXh0cXJMTWs0bFFmY0hyRXMzb3MvNUZWbWlq
12-
TjFjTFM4QkJSNVpGb25vWDZhU2oxRXVRYmJYMm5oTm9HMEhiMnVJREw4NitENFNFbHdRTDJwWFRi
13-
KytBRUlmdTQ2SmN1UklkREl0U1VHZi9udkZDM0RpUzNvLy9HaGhqRmQ2Yk5WaVdEQzBqNUlMeENz
14-
ZjNkWjQrYThLam5MRGN1SVZTVjJxd0dvQVEwV1lOSmJEN2x6S2xCdWN6SG1xVGd6R3JGdnR2UHBu
15-
K0ZCSC9tbnVLQVlXT2xBaWVBQ1gyWTlRQjdkZ2QvVzFvZW16VytSM3Y4NW9nb01FU0lVa2dLMHN4
16-
ZFUzVXZsRG5TeTRUOEh3MGVuZGZMWmxMbkQ5M1NIeXZhSHplMlJ1Ry9rUC9tRDBaK0FIZWwyeWZs
17-
QStJT1RmS3BnYWlONElwZjJYZFU2TllDS2VJQVJDdHNWaGJQTDVqbFF1dzdGbU0yT1JvZUZlY0tO
18-
MzBCWkdDRjl4bjlWVG1aQitoWUhSeDFhdHFKU0NCdXVENXhibzQ2d1E4Q0VSOGZiL2dZVVJwcmRJ
19-
ZDF6OXFjOWpxM2NwMW9mRlpTaWNZTkJIV2V5R281Y2ZtNFlhbXRCSlo4UWZqVTdySE1URDFGRHF4
20-
NlNCc256VXlUZWRNdmN5V3YxMEt6VUVLeG1oR2xDb3lvVXRRQy9yWGROMXhEMUhOQzdNRzBLZG1O
21-
K1ZMa2twOXEwemd6dDQvSlpuSFVoYkkvM3h0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CZEIvUVFLc2dyRGZoSGM9
2323
user: sophilabs
2424
provider: pypi
2525
distributions: sdist bdist_wheel

py101/classes/README.es.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Clases and Objectos
33

44
Las clases son una encapsulación de estado y comportamiento, definido por
55
variables y miembros respectivamente, en un solo tipo. Los objetos son
6-
instancias de clases que tienen sus variables y funciones desde una clase.
7-
Las clases son esencialmente una plantilla para crear objetos
6+
instancias de clases que obtienen sus variables y funciones desde una clase.
7+
Las clases son esencialmente una plantilla para crear objetos.
88

99
Una clase básica se ve como sigue:
1010

@@ -18,10 +18,10 @@ Una clase básica se ve como sigue:
1818
print("Hola {}".format(self.name))
1919

2020
La función especial "__init__" se llama cuando se crea un objeto Persona.
21-
Pueded definir y asignar variables que se usan dentro del objeto Persona
21+
Se pueden definir y asignar variables que se usan dentro del objeto Persona
2222
creado. Por ejemplo la clase de arriba asigna una nueva variable dentro del
2323
objeto Persona, llamada "name" usando el valor provisto a la función
24-
__init__. El parámetro "self" hace referencia al objeto implícito que se
24+
"__init__". El parámetro "self" hace referencia al objeto implícito que se
2525
está creando. En otros lenguajes de programación el objeto implícito se
2626
denomina "this".
2727

@@ -30,9 +30,9 @@ función __init__
3030

3131
.. sourcecode:: python
3232

33-
myperson = Person('Alex')
33+
myperson = Persona('Alex')
3434

35-
En la clase Person "print_name" es una función definida por el usuario que
35+
En la clase Persona "print_name" es una función definida por el usuario que
3636
puede ser invocada para realizar cierta tarea. La difrencia entre una
3737
función definida dentro de una clase y otra que no lo está es que las
3838
funciones definidas dentro de clases tienen acceso a las variables
@@ -42,7 +42,7 @@ Para invocar una función de un objeto se puede utilizar la siguiente sintaxis.
4242

4343
.. sourcecode:: python
4444

45-
alex = Person('Alex')
45+
alex = Persona('Alex')
4646
alex.print_name() # Imprime 'Hola Alex'
4747

4848

@@ -51,8 +51,8 @@ sintáxis similar:
5151

5252
.. sourcecode:: python
5353

54-
alex = Person('Alex')
55-
john = Person('Johnnie')
54+
alex = Persona('Alex')
55+
john = Persona('Johnnie')
5656
print(alex.name) # Imprime 'Alex'
5757
print(john.name) # Imprime 'Johnnie'
5858
john.name = 'John Walker'
@@ -62,10 +62,10 @@ sintáxis similar:
6262
Desafío
6363
-------
6464

65-
Considera la clase "Vehicle" que almacena el costo de un Vehículo, y una
65+
Considera la clase "Vehicle" que almacena el costo de un vehículo, y una
6666
función que retorna información acerca del vehículo como una cadena. Escribe
6767
un programa que imprima las líneas "Vehicle cost is 12000" y "Vechicle cost is
68-
5999.99" en ese orden usando la clase Vehicle y la función description
68+
5999.99" en ese orden usando la clase Vehicle y la función description.
6969

7070
.. sourcecode:: python
7171

py101/classes/README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ A basic class would look something like this:
1818
print("Hello {}".format(self.name))
1919

2020
The special "__init__" function is called when a Person object is created.
21-
It can define and assigne variables inside a created Person object. For
21+
It can define and assign variables inside a created Person object. For
2222
example the class above assigns a new variable inside a Person object called
2323
name using the value provided to the __init__ function. The "self" parameter
2424
makes reference to the implicit object which was created. In other
@@ -31,10 +31,10 @@ __init__ function.
3131

3232
myperson = Person('Alex')
3333

34-
In the Person class "print_name" is a user defined function that can be
34+
In the Person class, "print_name" is a user defined function that can be
3535
invoked to perform custom behaviour. The difference between a function
36-
defined inside a class an user defined function which not, is that functions
37-
inside classes do have access to the individual variables, those variables
36+
defined inside a class and a function defined outside a class is that functions
37+
inside classes have access to the individual variables, those variables
3838
are referenced by accessing the self object.
3939

4040
To invoke a function from an object, the following syntax can be used:
@@ -61,7 +61,7 @@ Challenge
6161
---------
6262

6363
Consider a class called "Vehicle" that stores a Vehicle cost, and a
64-
function that returns information about the vehicle as an string. Write a
64+
function that returns information about the vehicle as a string. Write a
6565
program that prints the lines "Vechicle cost is 12000" and "Vechicle cost is
6666
5999.99" in that order using the Vehicle class and the description function
6767

py101/conditions/README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Decision making
22
---------------
33

4-
Decision making is anticipation of conditions occurring while execution of the program and specifying actions taken according to the conditions. Decision structures evaluate multiple expressions which produce True or False. The program determine which action to take and which statements to execute, depending of the value of the expressions. Following is an example of a typical decision making structure found in most of the programming languages:
4+
Decision making is anticipation of conditions occurring while execution of the program and specifying actions taken according to the conditions. Decision structures evaluate multiple expressions which produce True or False. The program determines which action to take and which statements to execute, depending of the value of the expressions. Following is an example of a typical decision making structure found in most programming languages:
55

66
.. sourcecode:: python
77

@@ -10,7 +10,7 @@ Decision making is anticipation of conditions occurring while execution of the p
1010
if age > 18:
1111
print('You are too old')
1212

13-
Python provides the "if" statements, consisting of a boolean expression followed by one or more statementsIf statements can be followed by an else "else" statements executed if the top "if" condition doesn't held.
13+
Python provides the "if" statement, consisting of a boolean expression followed by one or more statements. "If" statements can be followed by an "else" statement executed if the top "if" condition doesn't held.
1414

1515
.. sourcecode:: python
1616

@@ -22,7 +22,7 @@ Python provides the "if" statements, consisting of a boolean expression followed
2222
else:
2323
print('Result is {}'.format(x/y))
2424

25-
If statements can be nested allowing more complex logic to be executed:
25+
"If" statements can be nested allowing more complex logic to be executed:
2626

2727
.. sourcecode:: python
2828

py101/dictionaries/README.es.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ Diccionarios
22
------------
33

44
Un diccionario es un tipo de datos similar a las listas, pero funciona
5-
asociando claves y valores en en vez de usar índices. Cada valor del
5+
asociando claves y valores en vez de usar índices. Cada valor del
66
diccionario puede ser accedido usando una clave que puede ser cualquier tipo
77
de objeto. Por ejemplo se pueden usar cadenas para referenciar objetos del
88
diccionario. Una pequeña base de datos telefónica puede ser almacenada usando
9-
diccionarios de la siguiente manera
9+
diccionarios de la siguiente manera.
1010

1111
.. sourcecode:: python
1212

@@ -16,7 +16,7 @@ diccionario puede ser accedido usando una clave que puede ser cualquier tipo
1616
directorio["Rolling"] = '9476-62781'
1717

1818
De manera alternativa, un diccionario puede ser inicializado usando la
19-
siguiente notación
19+
siguiente notación:
2020

2121
.. sourcecode:: python
2222

@@ -30,7 +30,7 @@ Iteración
3030
---------
3131

3232
Los diccionarios permiten ser iterados. Para iterar sobre las claves del
33-
diccionario se usa la siguiente sintaxis.
33+
diccionario se usa la siguiente sintaxis:
3434

3535
.. sourcecode:: python
3636

@@ -51,7 +51,7 @@ Sin embargo, un diccionario no mantiene el orden de los elementos almacenado
5151
Borrado de claves
5252
-----------------
5353

54-
Para borrar un índice específico usa la palabra clave "del" como se muestra
54+
Para borrar una clave específica usa la palabra clave "del" como se muestra
5555
en el siguiente ejemplo:
5656

5757
.. sourcecode:: python
@@ -81,5 +81,3 @@ cuyos valores son números pares.
8181
# no modifiques este código
8282
print_only_even_keys({ 'Alfred': 28, 'Mary': 29 })
8383
print_only_even_keys({ 'Alfred': 31, 'Mary': 29 })
84-
85-

py101/dictionaries/README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Dictonaries
22
-----------
33

4-
A dictionary is a data type similar to lists, but works with keys and
4+
A dictionary is a data type similar to lists, but it works with keys and
55
values instead of indexes. Each value stored in a dictionary can be accessed
6-
using a key, which is any type of object, for example strings
7-
instead of using its index to address it.
6+
using a key, which can any type of object (for example strings),
7+
instead of using a numerical index as lists do.
88

99
For example, a database of phone numbers could be stored using a dictionary
1010
like this: {}
@@ -81,4 +81,4 @@ Modify the program below, so the "print_only_even_keys" function prints
8181
print_only_even_keys({ 'Alfred': 28, 'Mary': 29 })
8282
print_only_even_keys({ 'Alfred': 31, 'María': 29 })
8383

84-
The program should Output "Alfred" in the first line and nothing else
84+
The program should Output "Alfred" in the first line and nothing else.

py101/formatting/README.es.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Formateo de Strings
22
-------------------
33

4-
El método str.format() de la clase string puede ser utilizado para hacer substitución de variables y formateo de valores. Esto permite concatenar elementos juntos dentro de una cadena usando formateo posicional. Funciona introduciendo uno o más campos de reemplazo, definidos como pares de corchetes ({}) en uan cadena y llamando a la operación format:
4+
El método str.format() de la clase string puede ser utilizado para hacer substitución de variables y formateo de valores. Esto permite concatenar elementos juntos dentro de una cadena usando formateo posicional. Funciona introduciendo uno o más campos de reemplazo, definidos como pares de corchetes ({}) en una cadena y llamando a la operación format:
55

66
.. sourcecode:: python
77

py101/formatting/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
String Formatting
22
-----------------
33

4-
Python's format() operation of the string class allows to do variable substitutions and value formatting. This allows to concatenate elements together within a string through positional formatting. It work by putting in one or more replacement fields or placeholders, defined by a pair of curly braces ({}), into a string and calling the format() operation:
4+
Python's format() operation of the string class allows to do variable substitutions and value formatting. This allows to concatenate elements together within a string through positional formatting. It works by putting in one or more replacement fields or placeholders, defined by a pair of curly braces ({}), into a string and calling the format() operation:
55

66
.. sourcecode:: python
77

88
print('Hello {}. How are you?'.format('Josh'))
99
# prints out 'Hello Josh. How are you?
1010

11-
In the previous example places the value of Josh into the string where the curly braces were.
11+
In the previous example it places the value "Josh" into the string where the curly braces were.
1212

1313
Multiple pairs of curly braces can be used to do multiple substitutions.
1414

py101/functions/README.es.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Una función es un bloque de código organizado y reusable que puede ser utiliza
99
print("Hola")
1010
print("¿Cómo estás?")
1111

12-
Las funciones también pueden recibir argumentos: variables que se pasan desde el invocador a la función. Por ejemplo
12+
Las funciones también pueden recibir argumentos: variables que se pasan desde el invocador a la función. Por ejemplo:
1313

1414
.. sourcecode:: python
1515

@@ -28,7 +28,7 @@ Las funciones también pueden retornar un valor al invocador, usando la palabra
2828
print("y no puede ser 0")
2929
return 0
3030

31-
En algunos casos las funciones pueden ser vacías y no hacer nada. Por ejemplo si se planea ser escritas luego. En esos casos, esas funciones solo tienen la palabra clave "pass" en el cuerpo
31+
En algunos casos las funciones pueden ser vacías y no hacer nada. Por ejemplo si se planea escribirlas luego. En esos casos, esas funciones solo tienen la palabra clave "pass" en el cuerpo.
3232

3333
.. sourcecode:: python
3434

py101/functions/README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Functions
22
---------
33

4-
A function is a block of organized, reusable code that is used to perform a single, related action. Python already define many built-in functions like print() or len(), but new functions can be defined in the code, which are called user-defined functions.
4+
A function is a block of organized, reusable code that is used to perform a single, related action. Python already definea many built-in functions like print() or len(), but new functions can be defined in the code, which are called user-defined functions.
55

66
.. sourcecode:: python
77

@@ -17,7 +17,7 @@ Functions may also receive arguments (variables passed from the caller to the fu
1717
print("Hello {}".format(name))
1818
print("How are you?")
1919

20-
Also they may return a value to the caller, using "return" keyword. For example:
20+
Also they may return a value to the caller, using the "return" keyword. For example:
2121

2222
.. sourcecode:: python
2323

@@ -28,7 +28,7 @@ Also they may return a value to the caller, using "return" keyword. For example:
2828
print("y can't be zero")
2929
return 0
3030

31-
In rare cases some functions may be empty and do nothing. For example if they are planned to be written later. In those cases, those functions have only the "pass" keyword on the body:
31+
In rare cases some functions may be empty and do nothing. For example if they are planned to be written later. In those cases, those functions have only the "pass" keyword on the body:
3232

3333
.. sourcecode:: python
3434

@@ -39,7 +39,7 @@ In rare cases some functions may be empty and do nothing. For example if they ar
3939
Calling a Function
4040
------------------
4141

42-
Defining a function only gives it a name, specifies the parameters that are to be included in the function and structures the blocks of code. Once the basic structure of a function is finalized, it can be executed by calling it. Following is the example to call the previous defined functions:
42+
Defining a function only gives it a name, specifies the parameters that are to be included in the function and structures the blocks of code. Once the basic structure of a function is finalized, it can be executed by calling it. Following is the example to call the previously defined functions:
4343

4444
.. sourcecode:: python
4545

0 commit comments

Comments
 (0)