Rilindo Foster wrote:
The list in question comes in this pair:

TotalStoreSales = Revenues + "," + Orders
TotalStoreSales = TotalStoreSales.split(",")

i Rilindo :-)

Why not just

TotalStoreSales = [Revenues, Orders]

At this point, it has two values, both strings.

Did you try a print statement just to check it is a
list here?

Then I attempt to do a comparison like so:

    if (float(TotalStoreSales[0]) > 0):
TypeError: unsubscriptable object

Normally means the "list" isn't

HTH,

Alan G.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to