Skip to main content

Printing Name Using Symbols

 This is simple program of printing name using symbols. It just look cool to see.

In this program we have simply written print function for different letters. Depending on our input it will take one by one letter and print that letter in the form of symbols.

This is just for fun.

   

#Author : SPPU CSE GURU name = input("Enter your name: ") print("\n") print("<><><><><><><><><><><><><><><><><><><><><>\n")

for letter in name: letter = letter.upper() if (letter == "A"): print("..@@@@@@..\n..@....@..\n..@@@@@@..\n..@....@..\n..@....@..\n\n") elif (letter == "B"): print("..@@@@@@..\n..@....@..\n..@@@@@...\n..@....@..\n..@@@@@@..\n\n") elif (letter == "C"): print("..@@@@@@..\n..@.......\n..@.......\n..@.......\n..@@@@@@..\n\n") elif (letter == "D"): print("..@@@@@...\n..@....@..\n..@....@..\n..@....@..\n..@@@@@...\n\n") elif (letter == "E"): print("..@@@@@@..\n..@.......\n..@@@@@...\n..@.......\n..@@@@@@..\n\n") elif (letter == "F"): print("..@@@@@@..\n..@.......\n..@@@@@...\n..@.......\n..@.......\n\n") elif (letter == "G"): print("..@@@@@@..\n..@.......\n..@@@@@...\n..@....@..\n..@@@@@...\n\n") elif (letter == "H"): print("..@....@..\n..@....@..\n..@@@@@@..\n..@....@..\n..@....@..\n\n") elif (letter == "I"): print("..@@@@@@..\n....@@....\n....@@....\n....@@....\n..@@@@@@..\n\n") elif (letter == "J"): print("..@@@@@@..\n....@@....\n....@@....\n..@.@@....\n..@@@@....\n\n") elif (letter == "K"): print("..@...@...\n..@..@....\n..@@......\n..@..@....\n..@...@...\n\n") elif (letter == "L"): print("..@.......\n..@.......\n..@.......\n..@.......\n..@@@@@@..\n\n") elif (letter == "M"): print("..@....@..\n..@@..@@..\n..@.@@.@..\n..@....@..\n..@....@..\n\n") elif (letter == "N"): print("..@....@..\n..@@...@..\n..@.@..@..\n..@..@.@..\n..@...@@..\n\n") elif (letter == "O"): print("..@@@@@@..\n..@....@..\n..@....@..\n..@....@..\n..@@@@@@..\n\n") elif (letter == "P"): print("..@@@@@@..\n..@....@..\n..@@@@@@..\n..@.......\n..@.......\n\n") elif (letter == "Q"): print("..@@@@@@..\n..@....@..\n..@.@..@..\n..@..@.@..\n..@@@@@@..\n\n") elif (letter == "R"): print("..@@@@@@..\n..@....@..\n..@.@@...\n..@...@...\n..@....@..\n\n") elif (letter == "S"): print("..@@@@@@..\n..@.......\n..@@@@@@..\n.......@..\n..@@@@@@..\n\n") elif (letter == "T"): print("..@@@@@@..\n....@@....\n....@@....\n....@@....\n....@@....\n\n") elif (letter == "U"): print("..@....@..\n..@....@..\n..@....@..\n..@....@..\n..@@@@@@..\n\n") elif (letter == "V"): print("..@....@..\n..@....@..\n..@....@..\n...@..@...\n....@@....\n\n") elif (letter == "W"): print("..@....@..\n..@....@..\n..@.@@.@..\n..@@..@@..\n..@....@..\n\n") elif (letter == "X"): print("..@....@..\n...@..@...\n....@@....\n...@..@...\n..@....@..\n\n") elif (letter == "Y"): print("..@....@..\n...@..@...\n....@@....\n....@@....\n....@@....\n\n") elif (letter == "Z"): print("..@@@@@@..\n......@...\n.....@....\n....@.....\n..@@@@@@..\n\n") elif (letter == " "): print("..........\n..........\n..........\n..........\n\n") elif (letter == "."): print("..........\n..........\n....@@....\n....@@....\n..........\n..........\n") print("<><><><><><><><><><><><><><><><><><><><><>")

Comments

Popular posts from this blog

Bouncing Ball

Group B   Practical 4 a   Problem Statement :   Write a C++ program to implement bouncing ball using sine wave form. Apply the concept of polymorphism. Check Out Code Here  ðŸ‘‡ Outputs :  Code can get updated so also come back later to see if there is any changes. Also if there is any problem with code you can comment below. If you like it, do share with your friends.😊

2D Object Transformations

  Group B   Practical 4 a   Problem Statement :    Write C++ program to draw 2-D object and perform following basic transformations a) Scaling b) Translation c) Rotation. Apply the concept of operator overloading. Check Out Code Here  ðŸ‘‡ Output : a) Scaling - b) Translation - c) Rotation - Code can get updated so also come back later to see if there is any changes. Also if there is any problem with code you can comment below. If you like it, do share with your friends.😊

OOP 4

  Object Oriented Programming Group B - Practical : 4 Problem Statement :  Write a C++ program that creates an output file, writes information to it, closes the file, open it again as an input file and read the information from the file. Check Out Code Here  ðŸ‘‡ Code can get updated so also come back later to see if there is any changes. Also if there is any problem with code you can comment below. If you like it, do share with your friends.😊