Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/data/es/tutorials/Tutorial_02_while.py
blob: f58b51d6f9a3c323e989ea84454be17276101f53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# -*- coding: utf-8

import time

def while_cuenta_regresiva(numero):
    while(numero > -1):
        print  str(numero) + ' para la explosion!!!'
        time.sleep(1)
        numero = numero -1

numero = input('Escribe un numero: ')
print 'Cuenta regresiva usando sentencia while!!'
while_cuenta_regresiva(numero)
print 'Kaboooommm!!!, X_X'