Enter Your Name and See the Magic

What is ASCII Art?

ASCII art is a graphic design technique that uses computers for presentation and consists of pictures pieced together from the 95 printable characters defined by the ASCII Standard from 1963 and ASCII compliant character s…


This content originally appeared on DEV Community and was authored by Hazrat Ali

What is ASCII Art?

ASCII art is a graphic design technique that uses computers for presentation and consists of pictures pieced together from the 95 printable characters defined by the ASCII Standard from 1963 and ASCII compliant character sets with proprietary extended characters.

Create Ascii Art With Python

With python programming, there are tons of ways you can create ASCII art using the Python programming langue. It is the art of working with ASCII codes and you can do it with the help of python programming language if you know this art.

Run the following code in Python and enter your name to see the magic.



ime = input("Enter your name: \n\n")


for c in ime:

    c = c.upper()
    if (c == "A"):
        print("..######..\n..#....#..\n..######..\n..#....#..\n..#....#..\n\n")
    elif (c == "B"):
        print("..######..\n..#....#..\n..#####...\n..#....#..\n..######..\n\n")
    elif (c == "C"):
        print("..######..\n..#.......\n..#.......\n..#.......\n..######..\n\n")
    elif (c == "D"):
        print("..#####...\n..#....#..\n..#....#..\n..#....#..\n..#####...\n\n")
    elif (c == "E"):
        print("..######..\n..#.......\n..#####...\n..#.......\n..######..\n\n")
    elif (c == "F"):
        print("..######..\n..#.......\n..#####...\n..#.......\n..#.......\n\n")
    elif (c == "G"):
        print("..######..\n..#.......\n..#####...\n..#....#..\n..#####...\n\n")
    elif (c == "H"):
        print("..#....#..\n..#....#..\n..######..\n..#....#..\n..#....#..\n\n")
    elif (c == "I"):
        print("..######..\n....##....\n....##....\n....##....\n..######..\n\n")
    elif (c == "J"):
        print("..######..\n....##....\n....##....\n..#.##....\n..####....\n\n")
    elif (c == "K"):
        print("..#...#...\n..#..#....\n..##......\n..#..#....\n..#...#...\n\n")
    elif (c == "L"):
        print("..#.......\n..#.......\n..#.......\n..#.......\n..######..\n\n")
    elif (c == "M"):
        print("..#....#..\n..##..##..\n..#.##.#..\n..#....#..\n..#....#..\n\n")
    elif (c == "N"):
        print("..#....#..\n..##...#..\n..#.#..#..\n..#..#.#..\n..#...##..\n\n")
    elif (c == "O"):
        print("..######..\n..#....#..\n..#....#..\n..#....#..\n..######..\n\n")
    elif (c == "P"):
        print("..######..\n..#....#..\n..######..\n..#.......\n..#.......\n\n")
    elif (c == "Q"):
        print("..######..\n..#....#..\n..#.#..#..\n..#..#.#..\n..######..\n\n")
    elif (c == "R"):
        print("..######..\n..#....#..\n..#.##...\n..#...#...\n..#....#..\n\n")
    elif (c == "S"):
        print("..######..\n..#.......\n..######..\n.......#..\n..######..\n\n")
    elif (c == "T"):
        print("..######..\n....##....\n....##....\n....##....\n....##....\n\n")
    elif (c == "U"):
        print("..#....#..\n..#....#..\n..#....#..\n..#....#..\n..######..\n\n")
    elif (c == "V"):
        print("..#....#..\n..#....#..\n..#....#..\n...#..#...\n....##....\n\n")
    elif (c == "W"):
        print("..#....#..\n..#....#..\n..#.##.#..\n..##..##..\n..#....#..\n\n")
    elif (c == "X"):
        print("..#....#..\n...#..#...\n....##....\n...#..#...\n..#....#..\n\n")
    elif (c == "Y"):
        print("..#....#..\n...#..#...\n....##....\n....##....\n....##....\n\n")
    elif (c == "Z"):
        print("..######..\n......#...\n.....#....\n....#.....\n..######..\n\n")
    elif (c == " "):
        print("..........\n..........\n..........\n..........\n\n")
    elif (c == "."):
        print("----..----\n\n")


This content originally appeared on DEV Community and was authored by Hazrat Ali


Print Share Comment Cite Upload Translate Updates
APA

Hazrat Ali | Sciencx (2021-11-06T14:49:39+00:00) Enter Your Name and See the Magic. Retrieved from https://www.scien.cx/2021/11/06/enter-your-name-and-see-the-magic/

MLA
" » Enter Your Name and See the Magic." Hazrat Ali | Sciencx - Saturday November 6, 2021, https://www.scien.cx/2021/11/06/enter-your-name-and-see-the-magic/
HARVARD
Hazrat Ali | Sciencx Saturday November 6, 2021 » Enter Your Name and See the Magic., viewed ,<https://www.scien.cx/2021/11/06/enter-your-name-and-see-the-magic/>
VANCOUVER
Hazrat Ali | Sciencx - » Enter Your Name and See the Magic. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/11/06/enter-your-name-and-see-the-magic/
CHICAGO
" » Enter Your Name and See the Magic." Hazrat Ali | Sciencx - Accessed . https://www.scien.cx/2021/11/06/enter-your-name-and-see-the-magic/
IEEE
" » Enter Your Name and See the Magic." Hazrat Ali | Sciencx [Online]. Available: https://www.scien.cx/2021/11/06/enter-your-name-and-see-the-magic/. [Accessed: ]
rf:citation
» Enter Your Name and See the Magic | Hazrat Ali | Sciencx | https://www.scien.cx/2021/11/06/enter-your-name-and-see-the-magic/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.