hi~~~

laotseu bdesth at nospam.free.fr
Sun Aug 18 23:50:29 EDT 2002


djw wrote:
> laotseu wrote:
> 
>> ÙâÙâºõºõ wrote:
>>
>>> i am learning python!
>>>
>>>
>>
>>
>> try this one :
>>
>> # file useless_msg.py
>> def useless_msg():
>>     print 'hi, I'm learning Python !'
>>
>> def main():
>>     while(1)
>>         useless_msg()
>>
>> if __name__ == '__main__':
>>     main()
>>
>>
>> $ python useless_msg.py
>>
>>
>>
>> laotseu
>>
> 
> # I would try this instead...
> 
> 
> # file useless_msg.py
> def useless_msg():
>     print "hi, I'm learning Python !"
> 
> def main():
>     while(1):
>         useless_msg()
> 
> if __name__ == '__main__':
>     main()
> 
> 
> # as it actually works...  :-)
> 
> D
> 

Oops ! Sorry, I just can't get used to those ' " :(
(my editor usually tells me when i'm in trouble with this... I guess i 
depend too much on syntax hiliting...)


def punition():
     for i in range(100):
         print "I'll pay attention to single quotes"


laotseu




More information about the Python-list mailing list