Advertisement
teslariu

contador

Sep 10th, 2021
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. """
  4. Hacer un script usando la biblioteca time para imprimir una cuenta regresiva
  5. de 10 a 0 (en segundos)
  6. ayuda: función sleep
  7. """
  8. import time
  9.  
  10. for i in range(10,-1,-1):
  11.     print(i)
  12.     time.sleep(1)
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement