iterating over lines in a file

robin at illusionsexeculink.com robin at illusionsexeculink.com
Fri Jul 21 09:21:27 EDT 2000


garabik at center.fmph.uniba.sk.spam (Radovan Garabik) wrote:

>nah... WWIII will be started with this code:
>
>def check_if_there_is_an_attack():
>    ....
>    if ....:
>        return 0
>    else:
>	return 1
>
>if check_if_there_is_an_attack:
>    launch_counterattack()

For those who remember the seventies... and eighties... and... it's
more like:

def is_there_an_attack():
    return launch_attack():

def launch_attack():
    if is_there_an_attack():
        launch_attack()
    return 1

is_there_an_attack()

-----
robin                          robin at illusionsexeculink.com
media artist /                 remove illusions to reply
information architect          www.execulink.com/~robin/

"I choked on my words but just couldn't spit. It will affect a lot of
physics --  it should have fallen from a bridge, but..." an official
said Wednesday. He was 74.  



More information about the Python-list mailing list