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 ""

0 thoughts on “Ascii Art – Segment display”

  1. It is appropriate time to make some plans for the future and it is time to be happy.

    I have read this post and if I could I want to suggest you few interesting
    things or advice. Maybe you can write next articles referring to this article.
    I want to read even more things about it!

  2. You must make a shelter, a hiding place where no onw needs to buy or sell.How? Simple. Make a farm. Eat and drink, no shopping, just work for daily food.and pay taxes by giving the tax collector some sheep, goat, or chickens they can sell. If you give them more than the sum they asked, im very sure they will pay in your place for your tax. I mean, do you get it?For health and security, we all know God takes care of it.Thats my idea, what do you say?

Leave a Reply to How To Start A Convenience Store Cancel reply

Your email address will not be published. Required fields are marked *