Ministério da Educação
Brasil um país de todos
Personal tools
Navigation
Log in


Forgot your password?
 
Document Actions

imprime.py

by Cicero Garrozi last modified 2015-06-26 04:58

Click here to get the file

Size 1 kB - File type text/python-source

File contents

def imprimeGrade(matriz):
    ultimaLinha = [" ", " ", " "]
    if matriz[2][0] != "_":
        ultimaLinha[0] = matriz[2][0]
    if matriz[2][1] != "_":
        ultimaLinha[1] = matriz[2][1]
    if matriz[2][2] != "_":
        ultimaLinha[2] = matriz[2][2]
    print("L      C O L U N A S")
    print("I      1     2     3")
    print("N  1 __%s__|__%s__|__%s__"%(matriz[0][0], matriz[0][1], matriz[0][2]))
    print("H  2 __%s__|__%s__|__%s__"%(matriz[1][0], matriz[1][1], matriz[1][2]))
    print("A  3   %s  |  %s  |  %s  "%(ultimaLinha[0], ultimaLinha[1], ultimaLinha[2]))
    print("S")


Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: