This is now a little serie :)
Funny Dots
You will get two Integer n (width) and m (height) and your task is to draw following pattern. Each line is seperated with '\n'.
Both integers are equal or greater than 1. No need to check for invalid parameters.
e.g.:
                                          +---+---+---+
            +---+                         | o | o | o |
dot(1,1) => | o |          dot(3,2) =>    +---+---+---+            
            +---+                         | o | o | o |
                                          +---+---+---+
 Serie: ASCII Fun
ASCII Fun #1: X-Shape
ASCII Fun #2: Funny Dots
ASCII Fun #3: Puzzle Tiles
ASCII Fun #4: Build a pyramid
def dot(n,m):
    sep = '+' + '+'.join(['---'] * n) + '+'
    bod = '|' + '|'.join([' o '] * n) + '|'
    def f():
        yield sep
        for i in range(m):
            yield bod
            yield sep
    return '\n'.join(f())
def dot(n,m):
    sep = '+' + '+'.join(['---'] * n) + '+'
    bod = '|' + '|'.join([' o '] * n) + '|'
    def f():
        yield sep
        for i in range(m):
            yield bod
            yield sep
    return '\n'.join(f())