diff options
author | Walter Bender <walter@sugarlabs.org> | 2014-01-14 18:38:15 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2014-01-14 18:38:15 (GMT) |
commit | 241d9c0eb84b69d1f433942378a1d215e6556249 (patch) | |
tree | d2948a471827bc92e9f6fdfa7904e8e0aa1eb8ee /data | |
parent | 683c680773852661a4e0ebb1bd2302eaff6f8e65 (diff) |
set encoding
Diffstat (limited to 'data')
-rw-r--r-- | data/es/tutorials/Tutorial_01_entrada_simple.py | 2 | ||||
-rw-r--r-- | data/es/tutorials/Tutorial_02_while.py | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/data/es/tutorials/Tutorial_01_entrada_simple.py b/data/es/tutorials/Tutorial_01_entrada_simple.py index 57f00f4..42102c1 100644 --- a/data/es/tutorials/Tutorial_01_entrada_simple.py +++ b/data/es/tutorials/Tutorial_01_entrada_simple.py @@ -1,3 +1,3 @@ - +# -*- coding: utf-8 -*- name = raw_input('¿Cual es tu nombre?\n') print 'Hi, %s.' % name diff --git a/data/es/tutorials/Tutorial_02_while.py b/data/es/tutorials/Tutorial_02_while.py index 933459e..f58b51d 100644 --- a/data/es/tutorials/Tutorial_02_while.py +++ b/data/es/tutorials/Tutorial_02_while.py @@ -1,12 +1,14 @@ +# -*- coding: utf-8 + import time def while_cuenta_regresiva(numero): while(numero > -1): - print str(numero) + " para la explosion!!!" + print str(numero) + ' para la explosion!!!' time.sleep(1) numero = numero -1 numero = input('Escribe un numero: ') -print "Cuenta regresiva usando sentencia while!!" +print 'Cuenta regresiva usando sentencia while!!' while_cuenta_regresiva(numero) -print "Kaboooommm!!!, X_X" +print 'Kaboooommm!!!, X_X' |