Enter Your Name and See the Magic
AlixaProDev
Posted on November 6, 2021
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")
💖 💪 🙅 🚩
AlixaProDev
Posted on November 6, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.