Help with report

C

ChrisH

I have some data in the following format:

Fred Flintstone,445553454,47634565
Wilma Flintstone,74857346,27576847
Barney Rubble,73487346,27576435

I need to convert this data into a report with the user's name and
difference between the 2 numbers.

Can someone recommend a good way to do this?

BTW, it would be best if I can have it up and running by tomorrow. Also,
html would be the preferred format, but not required.

Any help would be greatly appreciated!!
 
G

Grant Edwards

I have some data in the following format:

Fred Flintstone,445553454,47634565
Wilma Flintstone,74857346,27576847
Barney Rubble,73487346,27576435

I need to convert this data into a report with the user's name and
difference between the 2 numbers.

Can someone recommend a good way to do this?

BTW, it would be best if I can have it up and running by tomorrow.

You really oughtn't put off homework assignments until the last
minute. Especially if you don't know how to do them.
Also, html would be the preferred format, but not required.

Any help would be greatly appreciated!!

Hints:

The string object's "split" method: http://docs.python.org/lib/string-methods.html

for line in file('inputfile.txt','r')

the built-in int()

the string formatting operator "%": http://docs.python.org/lib/typesseq-strings.html
 
C

ChrisH

I should have been more specific. The report needs to be presentable to
my users and needs to have rich text type properties (multiple colors,
tables, etc) Therefore, I would like to use html if possible.

I didn't know if there was already a report writing type of utility
already built using python, so I won't have to reinvent the wheel.

Oh. The one other thing I forgot to mention is that the data needs to be
already updated every 10 minutes or so automatically.
 
C

ChrisH

HTMLgen looks like it might fit the bill.

I should have been more specific. The report needs to be presentable to
my users and needs to have rich text type properties (multiple colors,
tables, etc) Therefore, I would like to use html if possible.

I didn't know if there was already a report writing type of utility
already built using python, so I won't have to reinvent the wheel.

Oh. The one other thing I forgot to mention is that the data needs to be
already updated every 10 minutes or so automatically.
 
C

Christopher Subich

ChrisH said:
Oh. The one other thing I forgot to mention is that the data needs to be
already updated every 10 minutes or so automatically.

You know, this is the most concise example of feature-creep in a
specification that I've ever seen.
 
C

ChrisH

You know, this is the most concise example of feature-creep in a
specification that I've ever seen.
You're right. I'm afraid it's from too much work and too little sleep.

I'll try to be more precise next time.

Thanks to everyone for their help.
Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,261
Messages
2,571,308
Members
47,968
Latest member
SerenaRusc

Latest Threads

Top