[Tutor] executing python script

Damian Coughlan d_coughlan@altavista.com
27 Sep 2001 03:35:31 -0700


This is a multi-part message in MIME format...

------------=_1001586931-29377-0
Content-Type: text/plain
Content-Disposition: inline

Hi, 
   attached u will find a script called lotto1.py. When I run the script using __main__ 
the interpreter does nothing and does not execute the function play. Please explain 

Thanks 
 
 


Find the best deals on the web at AltaVista Shopping!
http://www.shopping.altavista.com

------------=_1001586931-29377-0
Content-Type: application/octet-stream; name="lotto1.py"
Content-Disposition: attachment; filename="lotto1.py"
Content-Transfer-Encoding: base64

IyB0byBnZW5lcmF0ZSBxdWljayBwaWNrIGxvdHRvIG51bWJlcnMNCiMgYXV0
aG9yIDogRGFtaWVuIENvdWdobGFuICAgIC0gRGF0ZSAyNS85LzAxDQppbXBv
cnQgcmFuZG9tDQoNCmRlZiBsb3R0bygpIDoNCiAgICBhID0gcmFuZ2UoNDIp
DQogICAgcmFuZG9tLnNodWZmbGUoYSkNCiAgICBwcmludCBhWzo2XQ0KDQog
ICANCiAgICBkZWYgcGxheSgpOg0KICAgICAgICBjb21wbGV0ZWQ9MA0KICAg
ICAgICB3aGlsZSBub3QgY29tcGxldGVkOg0KICAgICAgICAgICAgdHJ5OiB4
PXJhd19pbnB1dCgnXG5wcmVzcyBlbnRlciBmb3IgbG90dG8gcXVpY2sgcGlj
ayAoRSB0byBleGl0KS4gJykNCiAgICAgICAgICAgIGV4Y2VwdCBFT0ZFcnJv
cjoNCiAgICAgICAgICAgICAgICB4ID0gJ2UnDQogICAgICAgICAgICAgICAg
aWYgeCBhbmQgKHhbMF0gPT0gJ2UnIG9yIHhbMF0gPT0gJ0UnKToNCiAgICAg
ICAgICAgICAgICAgICAgY29tcGxldGVkID0gMQ0KICAgICAgICAgICAgICAg
ICAgICBwcmludCAnY29tcGxldGVkJw0KICAgICAgICAgICAgICAgIGVsc2U6
DQogICAgICAgICAgICAgICAgICAgIHByaW50IGxvdHRvKCkNCg0KDQoNCiAg
ICBpZiBfX25hbWVfXyA9PSAnX19tYWluX18nIDoNCiAgICAgICAgcGxheSgp
DQogICAgZWxzZSA6DQogICAgICAgICAgICBwcmludCAiIE1vZHVsZSByYW5k
b20gaW1wb3J0ZWQgXG4iDQogICAgICAgICAgICBwcmludCAiIHRvIHBsYXkg
dHlwZSBsb3R0bzEucGxheSgpIFxuIg0KICAgICAgICAgICAgcHJpbnQgIiBU
byByZWxvYWQgdHlwZSA6IHJlbG9hZC5sb3R0bzEgXG4iDQo=

------------=_1001586931-29377-0--