diff options
| -rw-r--r-- | es-es/python-es.html.markdown | 4 | ||||
| -rw-r--r-- | python3.html.markdown | 10 | 
2 files changed, 7 insertions, 7 deletions
| diff --git a/es-es/python-es.html.markdown b/es-es/python-es.html.markdown index f92f5cde..f7a0ec02 100644 --- a/es-es/python-es.html.markdown +++ b/es-es/python-es.html.markdown @@ -130,7 +130,7 @@ otra_variable  # Levanta un error de nombre  # 'if' puede ser usado como una expresión  "yahoo!" if 3 > 2 else 2 #=> "yahoo!" -# Listas sobre secuencias +# Listas almacenan secuencias  lista = []  # Puedes empezar con una lista prellenada  otra_lista = [4, 5, 6] @@ -254,7 +254,7 @@ conjunto_lleno | otro_conjunto #=> {1, 2, 3, 4, 5, 6}  # Haz diferencia de conjuntos con -  {1,2,3,4} - {2,3,5} #=> {1, 4} -# CHequea la existencia en un conjunto con 'in' +# Chequea la existencia en un conjunto con 'in'  2 in conjunto_lleno #=> True  10 in conjunto_lleno #=> False diff --git a/python3.html.markdown b/python3.html.markdown index 54f425ed..77811535 100644 --- a/python3.html.markdown +++ b/python3.html.markdown @@ -318,7 +318,7 @@ except IndexError as e:  # Python's offers a fundamental abstraction called the Iterable. -# An iterable is an object that can be treated as a sequence.  +# An iterable is an object that can be treated as a sequence.  # The object returned the range function, is an iterable.  filled_dict = {"one": 1, "two": 2, "three": 3} @@ -336,7 +336,7 @@ our_iterable[1]  # Raises a TypeError  our_iterator = iter(our_iterable)  # Our iterator is an object that can remember the state as we traverse through it. -# We get the next object by calling the __next__ function.  +# We get the next object by calling the __next__ function.  our_iterator.__next__()  #=> "one"  # It maintains state as we call __next__. @@ -357,7 +357,7 @@ list(filled_dict.keys())  #=> Returns ["one", "two", "three"]  # Use "def" to create new functions  def add(x, y): -    print("x is %s and y is %s" % (x, y)) +    print("x is {} and y is {}".format(x, y))      return x + y    # Return values with a return statement  # Calling functions with parameters @@ -565,9 +565,9 @@ print(say(say_please=True))  # Can you buy me a beer? Please! I am poor :(  * [Dive Into Python](http://www.diveintopython.net/)  * [Ideas for Python Projects](http://pythonpracticeprojects.com) -* [The Official Docs](http://docs.python.org/2.6/) +* [The Official Docs](http://docs.python.org/3/)  * [Hitchhiker's Guide to Python](http://docs.python-guide.org/en/latest/) -* [Python Module of the Week](http://pymotw.com/2/) +* [Python Module of the Week](http://pymotw.com/3/)  * [A Crash Course in Python for Scientists](http://nbviewer.ipython.org/5920182)  ### Dead Tree | 
