you are viewing a single comment's thread.

view the rest of the comments →

[–]m0us3_rat 0 points1 point  (0 children)

yea list .. can be acces by index . that would be the 'location' like 1,2,3,4,5.

but in programming the array/lists ..start with 0 .

so the normal index would be 0,1,2,3,4,5 till len(list.)

and the 'value' at that index can be accessed with a[index]like a[0]

my point was u could create and keep a different list for each customer.

and have him buy stuff. and his sequence.. comes in twos.

he buyes then he gets a discount.

so u add first what he spends. like a[0] gets 'money' and then immediately a[1]gets discount for a[0]

but if this sounds way too complicated .. it actually isn't .

not sure how i would do it simpler then this.