-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrying.text
More file actions
20 lines (17 loc) · 739 Bytes
/
trying.text
File metadata and controls
20 lines (17 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
""
# looping through the words list
for word in welcoming_words:
# creating the sides of the decorating box and adjusting spaces on the right based on the length of words
if len(word) == 2:
print('*', ' '*10, word.center(127), ' '*(len(word)+10), '*')
if len(word) == 3:
print('*', ' '*10, word.center(127), ' '*(len(word)+8), '*')
if len(word) == 4:
print('*', ' '*10, word.center(127), ' '*(len(word)+6), '*')
if len(word) == 7:
print('*', ' '*10, word.center(127), ' '*len(word), '*')
if len(word) == 8:
print('*', ' '*10, word.center(127), ' '*(len(word)-2), '*')
# adding delay with time so that the words show slowly on the screen for practice
time.sleep(1)
"""