'''
Created on 28-Dec-2016
@author: linuxbeginner
'''
from time import sleep
def anim():
sleep(0.10)
welcome = ['W','E','L','C','O','M','E']
twok = ['T','w','o','*','*','T','h','o','u','s','a','n','d']
seventeen = ['S','e','v','e','n','t','e','e','n']
welcome_counter = 0
twok_counter = 0
seventeen_counter = 0
for i in range(0,5):
for sp in range(0,7):
print(' ',end="")
for j in range(4,i,-1):
print(' ',end="")
for k in range(0,i):
if i == 4:
print('{0}'.format(welcome[welcome_counter]),end="")
welcome_counter += 1
else:
print('*',end="")
for l in range(1,i):
if i == 4:
print('{0}'.format(welcome[welcome_counter]),end="")
welcome_counter += 1
else:
print('*',end="")
print(end="\n")
anim()
for i in range (0,3):
for j in range(0,i):
print(' ',end="")
for k in range(3,i,-1):
print('*',end="")
for l in range(0,15):
if i == 0 and l in range(1,14):
print('{0}'.format(twok[twok_counter]),end="")
twok_counter += 1
elif i == 1 and l in range(3,12):
print('{0}'.format(seventeen[seventeen_counter]),end="")
seventeen_counter += 1
else:
print('*',end="")
for m in range(3,i,-1):
print('*',end="")
print(end="\n")
anim()
print(end="\n")
No comments:
Post a Comment