Simple Python


SUBMITTED BY: Guest

DATE: April 20, 2013, 7:48 a.m.

FORMAT: Python

SIZE: 403 Bytes

HITS: 1189

  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. # ---------------------
  4. # Title: Hello World
  5. # Version: 1.0.0
  6. # Usage: python helloworld.py
  7. # ---------------------
  8. import sys, time
  9. def main(name='World'):
  10. sys.stdout.write('Hello %s!n' % name)
  11. time.sleep(1)
  12. sys.stdout.write('Thanks for the click!')
  13. if __name__ == '__main__':
  14. main()

comments powered by Disqus