Two Dictionaries and a Sum!

2013-05-17 Thread Bradley Wright
Confusing subject for a confusing problem (to a novice like me of course!) Thx for the help in advance folks I have (2) dictionaries: prices = { "banana": 4, "apple": 2, "orange": 1.5, "pear": 3 } stock = { "banana": 6, "apple": 0, "orange": 32, "pear": 15 }

Novice Issue

2013-04-17 Thread Bradley Wright
Good Day all, currently writing a script that ask the user for three things; 1.Name 2.Number 3.Description I've gotten it to do this hurah! print "Type \"q\" or \"quit\" to quit" while raw_input != "quit" or "q": print "" name = str(raw_input("Name: ")) number = str(raw_input("Num

Re: Novice Issue

2013-04-18 Thread Bradley Wright
On Thursday, April 18, 2013 12:06:59 AM UTC-4, Bradley Wright wrote: > Good Day all, currently writing a script that ask the user for three things; > > 1.Name > > 2.Number > > 3.Description > > I've gotten it to do this hurah! > > > > print

Re: Novice Issue

2013-04-18 Thread Bradley Wright
On Thursday, April 18, 2013 12:06:59 AM UTC-4, Bradley Wright wrote: > Good Day all, currently writing a script that ask the user for three things; > > 1.Name > > 2.Number > > 3.Description > > I've gotten it to do this hurah! > > > > print

(Learner-here) Lists + Functions = headache

2013-05-05 Thread Bradley Wright
Hey guys and gals doing this tutorial(codecademy) and needed a bit help from the experienced. I'm writing a function that takes a list(one they supply during runtime) here's what my function is supposed to do 1. for each instance of the string "fizz" make a count 2. Finally return that count he

Re: (Learner-here) Lists + Functions = headache

2013-05-05 Thread Bradley Wright
On Sunday, May 5, 2013 9:21:33 PM UTC-4, alex23 wrote: > On May 6, 10:59 am, Bradley Wright > > wrote: > > > def fizz_cout(x): > > >     count = 0 > > >     for item in x: > > >         while item == "fizz": > > >            

Re: (Learner-here) Lists + Functions = headache

2013-05-05 Thread Bradley Wright
On Sunday, May 5, 2013 9:24:44 PM UTC-4, Bradley Wright wrote: > On Sunday, May 5, 2013 9:21:33 PM UTC-4, alex23 wrote: > > > On May 6, 10:59 am, Bradley Wright > > > > > > wrote: > > > > > > > def fizz_cout(x): > > >

Re: is there a way to collect twitts with python?

2009-04-04 Thread Bradley Wright
Just to pimp my own wares: http://github.com/bradleywright/yatcip/tree/master A Python Twitter client. -- http://mail.python.org/mailman/listinfo/python-list