I'm trying to print the name as hyphens with time delay of 0.1 second so it looks like kind of animation moving. I want the output that is the words to get displayed in horizontal manner but im getting it in vertical manner. Please check the below code and suggest how to move the cursor to the start position. code:
import time
import sys
name='superstar'
word={'s':'''
_
|_
_|''',
'u':'''
| |
|_|''',
'p':'''
_
|_|
|''',
'e':'''
_
|_
|_''',
'r':'''
_
|_|
|\\''',
't':'''
___
|
|''',
'a':'''
_
/_\\
/ \\'''}
for i in name:
for j in word[i]:
print(j, end='')
sys.stdout.flush()
time.sleep(0.1)
My output is as below:
_
|_
|
| |
||
_
||
|
_
|
|_
_
||
|
_
|
_|
|
|
_
/
/
_
||
|\
But I want O/p as below:
*SUPERSTAR (need it in horizontally)