Re: [Tutor] returning values from function.

2009-03-23 Thread Alan Gauld
"Bala subramanian" wrote I wrote the following code to create two different list. One containing data points of all clusters and another containing list of individual cluster data points. The script is as follows. data=[] # list of all data points all=[ [] for value in range(int(argv[2])) ]

[Tutor] returning values from function.

2009-03-23 Thread Bala subramanian
Friends, I wrote the following code to create two different list. One containing data points of all clusters and another containing list of individual cluster data points. The script is as follows. #!/usr/bin/env python from sys import argv # STEP 1: a) ACCUMULATING ALL DATA POINTS IN AND A LIST