Return to Snippet

Revision: 13765
at May 6, 2009 02:45 by iamok


Initial Code
def main():
    print [func(x) for x in range(10)]
    print map(func,range(0,10))

def func(x):
    return x**2

if __name__ == '__main__':
    main()

Initial URL

                                

Initial Description

                                

Initial Title
list comprehension

Initial Tags

                                

Initial Language
Python