/ Published in: Python
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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()