Screen Player

import time
import sys

l1 = l2 = l3 = l4 = l5 = ''

def main(w):
    global l1,l2,l3,l4,l5
    l1 = l2 = l3 = l4 = l5 = ''
    s = '**'

    long = s*4 + ' '
    long1 = s*3 + ' '*3
    dual = s+ ' '*4 + s+' '
    sin = s+' '*7          
    sin1 = ' '*6 + s +' '
    mid = ' '*3 + s + ' '*3+' '
    dual1 = ' '+s+' '*2 + s+ '  '
    dual2 = s*2 + ' '*5
    dual3 = ' '*4 +s*2 +' '*2
    mual = s+' ' + s + ' '+s+' '

    letter = {
        'a' : [long,dual,long,dual,dual],
        'b' : [long1,dual,long1,dual,long1],
        'c' : [long,sin,sin,sin,long],
        'd' : [long1,dual,dual,dual,long1],
        'e' : [long,sin,long,sin,long],
        'f' : [long,sin,long,sin,sin],
        'g' : [long,sin,long,dual,long],
        'h' : [dual,dual,long,dual,dual],
        'i' : [long,mid,mid,mid,long],
        'j' : [long,mid,mid,mid,dual2],
        'k' : [dual,dual1[1:]+' ',dual2,dual1[1:]+' ',dual],
        'l' : [sin,sin,sin,sin,long],
        'm' : [dual,mual,dual,dual,dual],
        'n' : [dual,dual2[:-3]+s+' ',mual,s+dual3[2:-1],dual],
        'o' : [long,dual,dual,dual,long],
        'p' : [long1,dual,long1,sin,sin],
        'q' : [long,dual,mual,dual,long],
        'r' : [long1,dual,long1,dual,dual],
        's' : [long,sin,long,sin1,long],
        't' : [long,mid,mid,mid,mid],
        'u' : [dual,dual,dual,dual,long],
        'v' : [dual,dual,dual,dual1,mid],
        'w' : [dual,dual,dual,mual,dual],
        'x' : [dual,dual1,mid,dual1,dual],
        'y' : [dual,dual,dual1,mid,mid],
        'z' : [long,dual3[:-3]+' '*2,mid,' '+dual2[1:],long]
    }
    for i in w.lower():
        if i ==' ':
            l1+= '\t';l2+= '\t';l3+= '\t';l4+= '\t';l5+= '\t'
            continue

        p = letter[i]
        
        l1 += p[0]
        l2 += p[1]
        l3 += p[2]
        l4 += p[3]
        l5 += p[4]

    word = f'{l1}\n{l2}\n{l2}\n{l3}\n{l4}\n{l4}\n{l5}\n\n'
    print()
    for i in word:
        sys.stdout.write(i)
        sys.stdout.flush()
        time.sleep(.0000000000000000001)

# with open('abc.txt','r') as l:
#     w = l.read()

if __name__ == "__main__":
    main(' abhiyantriki')

Download the Python file- Click here

Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn
Share on whatsapp
WhatsApp
Share on reddit
Reddit
Share on telegram
Telegram

Leave a Comment

Your email address will not be published.

Scroll to Top