Advertisement
Python253

20to0.py

Mar 6th, 2018
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.08 KB | None | 0 0
  1. #!/usr/bin/env python3
  2. ## -*- coding: utf-8 -*-
  3. # A Simple 20 Second Countdown Created With Python Scripting.
  4.  
  5. __file_name__ = '20to0.py'
  6. __author__ = 'Dan Evans'
  7. __copyright__ = 'Copyright 2016©, Coding With Py'
  8. __credits__ = 'Dan Evans'
  9. __dct_url__ = 'http://purl.org/dc/terms/'
  10. __license__ = 'Creative Commons'
  11. __rel_url__ = 'http://creativecommons.org/licenses/by-nc/4.0/'
  12. __version__ = 'CC-by-nc/4.0/'
  13. __maintainer__ = 'Dan(Python253)Evans'
  14. __email__ = 'Python253@gmail.com'
  15.  
  16. print('\n','','20to0.py is licensed under',
  17.     'The Creative Commons Attribution-NonCommercial 4.0 International License',
  18.     '\n'*2,'File Name: '+__file_name__,'\n','Author: '+__author__,
  19.     '\n','Copyright: '+__copyright__,'\n','Credits: '+__credits__,
  20.     '\n','DCT URL: ','\n',__dct_url__,'\n','License: '+__license__,
  21.     '\n','Release URL: ','\n',__rel_url__,'\n','Version: '+__version__,
  22.     '\n','Maintainer: '+__maintainer__,'\n','Email: '+__email__,'\n')
  23.  
  24. # This Script Counts Down From 20 to 0 Seconds.
  25. i = 21
  26. while i > 0:
  27.   i = i - 1
  28.   print(i)
  29.   if i == 0:
  30.     print('Done')
  31. # End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement