Advertisement
tsinclai2002

52WeeksOfCode Week 4 - Python

Jan 29th, 2014
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.33 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. # Title HelloWorld_ascii.py
  4. # Author: Tom Sinclair
  5. # Description: A simple demo of Python for 52WeeksOfCode
  6.  
  7. import os # for OS-level commands
  8. import time  # for our pause
  9.  
  10. s1='Hello'
  11. s2='World'
  12. s3='HelWorldlo'
  13.  
  14. # The idea here is for Hello to sneak up on World and swallow it.
  15.  
  16. os.system('clear') # for Mac OS X or *NIX
  17. #os.system('cls')   # for Windows *(uncomment to use)
  18.  
  19. print s1 + '\t\t\t\t\t' + s2
  20. time.sleep(1)
  21.  
  22. os.system('clear') # for Mac OS X or *NIX
  23. #os.system('cls')   # for Windows *(uncomment to use)
  24.  
  25. print '\t' + s1 + '\t\t\t\t' + s2
  26. time.sleep(1)
  27.  
  28. os.system('clear') # for Mac OS X or *NIX
  29. #os.system('cls')   # for Windows *(uncomment to use)
  30.  
  31. print '\t\t' + s1 + '\t\t\t' + s2
  32. time.sleep(1)
  33.  
  34. os.system('clear') # for Mac OS X or *NIX
  35. #os.system('cls')   # for Windows *(uncomment to use)
  36.  
  37. print '\t\t\t' + s1 + '\t\t' + s2
  38. time.sleep(1)
  39.  
  40. os.system('clear') # for Mac OS X or *NIX
  41. #os.system('cls')   # for Windows *(uncomment to use)
  42.  
  43. print '\t\t\t\t' + s1 + '\t' + s2
  44. time.sleep(1)
  45.  
  46. os.system('clear') # for Mac OS X or *NIX
  47. #os.system('cls')   # for Windows *(uncomment to use)
  48.  
  49. print '\t\t\t\t\t' + s1 + '' + s2
  50. time.sleep(1)
  51.  
  52.  
  53. os.system('clear') # for Mac OS X or *NIX
  54. #os.system('cls')   # for Windows *(uncomment to use)
  55.  
  56. print '\t\t\t\t\t' + s3
  57. time.sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement