Ascii Art – Segment display

#!/usr/bin/python27

Char = "4"

def segs(Char):
    if Char == "4":
        return ((0),(1,1),(1),(0,1),(0))

print segs(Char)
x = segs(Char)
for y in x:
    if y==0: y=y
    elif y==1: print "*",
    else:
        for z in y:
            if z==1: print "*",
            elif z==0: print " ",
    print ""