In this challenge we will use the print() instruction in Python to create an ASCII-bot: A robot made of ASCII characters, in other words characters that you can type with a standard QWERTY keyboard.
Python Code
This is what your code will look like:
#ASCII-Bot Challenge - www.101computing.net/ASCII-bot-challenge/ print(" +-+ +") print(" | +-+ | +-+") print(" +-+ | | | | +--+") print(" | | | | | |") print(" | | | | | |") print(" +---+---+---+--+---+----+----+") print(" | |") print(" | +-------+ +-------+ |") print("+--+ | | | | +--+") print("| | | | | | | |") print("| | | +--+ | +--+ | |") print("+--+ | |--| | |--| +--+") print(" | +-------+ +-------+ |") print(" | +-+ |") print(" | | | |") print(" | +-+ |") print(" | +--+ +--+ |") print(" | +-----------------+ |") print(" | |") print(" +----------------------------+") print("") print(" ASCII-BOT: Hello World!")
Step 1: ASCII Art
Use asciiflow.com to create your own robot using ASCII characters.
Step 2: Create the Python code
Once your ASCII art is complete click on the icon to generate the ASCII code. Copy and paste the code in the trinket window below.
Add print(“ at the beginning and “) at the end of each line of your ASCII art and check if your code is working by running the code using the icon.