dojosp / participant-s-projects

This is a space for projects that maybe did or didn't start at a Dojo session and the participants continued developing.

This URL has Read+Write access

Dojo (author)
Mon Jun 22 19:44:12 -0700 2009
commit  feb0f4307a2d14abea28b3bdfaecd07de80755eb
tree    afe627a34029c0ee94e7c315d6c418d779e1e1ee
parent  fbb30f2ee00d96259ce234342f191b256a15ee44
participant-s-projects / LATINOWARE-Python / diversao.py
100755 16 lines (11 sloc) 0.321 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python
 
class Diversao(object):
    def __init__(self):
        pass
    
 
def deslocaLinhaEsq(linha):
    res = [e for e in linha if e != ' ']
    return "".join(res)
 
def deslocaMatrizEsq(matriz):
    return [deslocaLinhaEsq(linha) for linha in matriz]
 
def deslocaColunaBaixo(matriz):
    return matriz