http://gns-ua.livejournal.com/ ([identity profile] gns-ua.livejournal.com) wrote in [personal profile] gns_ua 2011-09-08 05:30 pm (UTC)

Хлопцы, что вы курили и где такое дают ?

Какие, в жопу, блоксхемы? На блок-схеме вот это говно совершенно идентично вот этой питонятине:

def test(a):
    if a > 30:
        print "a>30"
    elif a > 20:
        print "A>20"
    elif a > 10:
        print "A>10"
    else:
        print "A TOO SMALL!"
        return False
    # maybe something more
    print "DONE"

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting