This program can convert one name, word or even one phrase from a single line into a composition of ASCII Art into five lines.
Just copy, paste and run this code:
alpha = [ [' AAA ',' A A ',' AAAAA ',' A A ',' A A '] , [' BBBB ',' B B ',' BBBB ',' B B ',' BBBB '] , [' CCCCC ',' C ',' C ',' C ',' CCCCC '] , [' DDD ',' D D ',' D D ',' D D ',' DDD '] , [' EEEEE ',' E ',' EEEEE ',' E ',' EEEEE '] , [' FFFFF ',' F ',' FFFF ',' F ',' F '] , [' GGGGG ',' G ',' G GGG ',' G G ',' GGGGG '] , [' H H ',' H H ',' HHHHH ',' H H ',' H H '] , [' III ',' I ',' I ',' I ',' III '] , [' J ',' J ',' J ',' J J ',' JJJJ '] , [' K K ',' K K ',' KKK ',' K K ',' K K '] , [' W ',' W ',' W ',' W ',' W '] , [' L ',' L ',' L ',' L ',' LLLLL '] , [' M M ',' MM MM ',' M M M ',' M M ',' M M '] , [' N N ',' NN N ',' N N N ',' N NN ',' N N '] , [' OOO ',' O O ',' O O ',' O O ',' OOO '] , [' PPPP ',' P P ',' PPPP ',' P ',' P '] , [' QQQ ',' Q Q ',' Q Q ',' Q QQ ',' QQQQ '] , [' RRRR ',' R R ',' RRRR ',' R R ',' R R '] , [' SSSS ',' S ',' SSS ',' S ',' SSSS '] ,[' TTTTT ',' T ',' T ',' T ',' T '] , [' U U ',' U U ',' U U ',' U U ',' UUU '] , [' V V ',' V V ',' V V ',' V V ',' V '] , [' X X ',' X X ',' X ',' X X ',' X X '] , [' Y Y ',' Y Y ',' Y ',' Y ',' Y '] , [' ZZZZZ ',' Z ',' Z ',' Z ',' ZZZZZ '] , [' ',' ',' ',' ',' '] , [' ',' ',' ----- ',' ',' '] ] abc = 'abcdefghijkwlmnopqrstuvxyz -' word = input('Type one word or name: ') print() word = word.lower() line = ['','','','',''] i = 0 j = 0 n = len(word) while i < 5 : while j < n : line[i] = line[i] + alpha[abc.index(word[j])][i] j += 1 print(line[i]) j = 0 i += 1
This program will ask you to enter one word or name (either lower or upper case). See the result if you enter: PYTHON