diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2013-08-22 21:42:10 (GMT) |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2013-08-22 21:42:10 (GMT) |
commit | 06dda82769d0167a8c11e7f5c95c331326234818 (patch) | |
tree | d3b98ab14cd9428ccb8a9d9290d9f617a7c1935c | |
parent | 815a03051415a8b7ada6ff2e2ee6209ce1e3f2cd (diff) |
Remove Unicode characters from code blocks in Part 2
The listings module doesn’t like them, unfortunately.
-rw-r--r-- | slides.tex | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -733,10 +733,10 @@ by the caller of the function.} \frametitle{\en{Functions}\es{Funciones}} \begin{lstlisting}[language=Python] def funcion_sin_parametros(): - print('Este función no tiene parametros') + print('Este funcion no tiene parametros') def funcion_con_parametros(para1, para2): - print('Este función tiene parametros: %s y %s' % (para1, para2)) + print('Este funcion tiene parametros: %s y %s' % (para1, para2)) # Llame a los funciones. funcion_sin_parametros() @@ -761,7 +761,7 @@ def min(numero_a, numero_b): return numero_a minimo = min(5, 7) -print('El número más pequeño es %i' % minimo) +print('El numero mas pequeno es %i' % minimo) \end{lstlisting} \end{frame} @@ -779,7 +779,7 @@ minimo = ( else: return 5 ) -print('El número más pequeño es %i' % minimo) +print('El numero mas pequeno es %i' % minimo) \end{lstlisting} \end{frame} @@ -869,7 +869,7 @@ class Vehiculo(object): self._matricula = matricula self._numero_de_ruedas = numero_de_ruedas - # Asumir vehículos están gravados por el número de ruedas + # Asumir vehiculos estan gravados por el numero de ruedas def calcular_impuesto(self): return 100 * self._numero_de_ruedas |