Re: [Tutor] list, tuple or dictionary

2011-11-29 Thread Steven D'Aprano
ADRIAN KELLY wrote: i am trying to create a program that will allow users to enter items and their prices; should i be looking at a list, tuple or what? many thanksadrian Translated to a version more familiar in the "real world": "I'm looking to build a wooden wardrobe that will allow

Re: [Tutor] list, tuple or dictionary

2011-11-29 Thread ADRIAN KELLY
Sound Wayne, thank you From: waynejwer...@gmail.com Date: Tue, 29 Nov 2011 15:11:46 -0600 Subject: Re: [Tutor] list, tuple or dictionary To: kellyadr...@hotmail.com CC: tutor@python.org On Tue, Nov 29, 2011 at 3:04 PM, ADRIAN KELLY wrote: thanks guy, i was thinking of using a

Re: [Tutor] list, tuple or dictionary

2011-11-29 Thread Wayne Werner
On Tue, Nov 29, 2011 at 3:04 PM, ADRIAN KELLY wrote: > thanks guy, i was thinking of using a dictionary:- > Stock_list = {"White Bread": 1.24, > "Biscuits": 1.77, > "Banana" : 0.23, > "Tea Bags" : 2.37, > "Eggs" : 1.23, > "Beans" : 0.57

Re: [Tutor] list, tuple or dictionary

2011-11-29 Thread ADRIAN KELLY
w would i go about adding, for example tea and eggs to get a subtotal? Adrian Kelly 1 Bramble Close Baylough Athlone County Westmeath 0879495663 From: waynejwer...@gmail.com Date: Tue, 29 Nov 2011 14:49:00 -0600 Subject: Re: [Tutor] list, tuple or dictionary To: kellyadr...@hotmail.com CC: tut

Re: [Tutor] list, tuple or dictionary

2011-11-29 Thread Wayne Werner
On Tue, Nov 29, 2011 at 2:31 PM, ADRIAN KELLY wrote: > i am trying to create a program that will allow users to enter items and > their prices; should i be looking at a list, tuple or what? > The entering part isn't as important as how you want to display the data. For instance, here's a program

Re: [Tutor] list, tuple or dictionary

2011-11-29 Thread bodsda
: [Tutor] list, tuple or dictionary ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To

[Tutor] list, tuple or dictionary

2011-11-29 Thread ADRIAN KELLY
i am trying to create a program that will allow users to enter items and their prices; should i be looking at a list, tuple or what? many thanksadrian ___ Tutor maillist - Tutor@python.org To unsubscribe