Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # Title HelloWorld_ascii.py
- # Author: Tom Sinclair
- # Description: A simple demo of Python for 52WeeksOfCode
- import os # for OS-level commands
- import time # for our pause
- s1='Hello'
- s2='World'
- s3='HelWorldlo'
- # The idea here is for Hello to sneak up on World and swallow it.
- os.system('clear') # for Mac OS X or *NIX
- #os.system('cls') # for Windows *(uncomment to use)
- print s1 + '\t\t\t\t\t' + s2
- time.sleep(1)
- os.system('clear') # for Mac OS X or *NIX
- #os.system('cls') # for Windows *(uncomment to use)
- print '\t' + s1 + '\t\t\t\t' + s2
- time.sleep(1)
- os.system('clear') # for Mac OS X or *NIX
- #os.system('cls') # for Windows *(uncomment to use)
- print '\t\t' + s1 + '\t\t\t' + s2
- time.sleep(1)
- os.system('clear') # for Mac OS X or *NIX
- #os.system('cls') # for Windows *(uncomment to use)
- print '\t\t\t' + s1 + '\t\t' + s2
- time.sleep(1)
- os.system('clear') # for Mac OS X or *NIX
- #os.system('cls') # for Windows *(uncomment to use)
- print '\t\t\t\t' + s1 + '\t' + s2
- time.sleep(1)
- os.system('clear') # for Mac OS X or *NIX
- #os.system('cls') # for Windows *(uncomment to use)
- print '\t\t\t\t\t' + s1 + '' + s2
- time.sleep(1)
- os.system('clear') # for Mac OS X or *NIX
- #os.system('cls') # for Windows *(uncomment to use)
- print '\t\t\t\t\t' + s3
- time.sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement