help me to find the error

2009-07-10 Thread jhinak sen
hi, i am a beginner in python language, i am trying with this programme : to find the addition and mean from a data set in a file and writing the mean and sum in some other file : "" *#! /usr/bin/env python import re import cPickle as p import math from numpy import * f0= open("temp9","r+").read

Re: Python-list Digest, Vol 70, Issue 142

2009-07-10 Thread jhinak sen
> *lines = f0.readlines()* > > Then in the for loop, change f1 to > > *f1=lines[i].split()* > > That may just stop it from complaining. > > Untested, but logically it's sound. > > Hope that works, > > Ching-Yun "Xavier" Ho, Technical Artist > > Cont

plotting graph from another file

2009-07-21 Thread jhinak sen
hello.. i want to plot a distribution graph for following data: *elements: number of occurance: a2 b4 c1 d9 e3* ( this a simple