how to print hut in python

Here is a simple code to print a hut in Python using ASCII art:

main.py
    /\    
   //\\   
  //  \\  
 //    \\ 
=========\ 
|       ||
|       ||
|       ||
|       ||
|       ||
+-------+
121 chars
12 lines
main.py
hut = '''    /\    
   //\\   
  //  \\  
 //    \\ 
=========\ 
|       ||
|       ||
|       ||
|       ||
|       ||
+-------+'''

print(hut)
145 chars
14 lines

You can run this script to get the output.

related categories

gistlibby LogSnag