filter() + simple program not outputting
Joyce Stack
joyce at netcard.com
Mon Jul 26 16:48:00 EDT 1999
Hello,
New to python but not to programming...can someone tell me why this
simple program is not outputting when i run from the BASH prompt....any
pointers would be helpful...thanking you in advance....
Joyce
#!/usr/bin/env python
def f(x):
return x%2 != 0 and x%3 != 0
filter(f, range(2, 25))
f( )
-------------- next part --------------
A non-text attachment was scrubbed...
Name: joyce.vcf
Type: text/x-vcard
Size: 214 bytes
Desc: Card for Joyce Stack
URL: <http://mail.python.org/pipermail/python-list/attachments/19990726/6e4e5440/attachment.vcf>
More information about the Python-list
mailing list