Re: python programming help

2013-12-09 Thread Chris Angelico
On Tue, Dec 10, 2013 at 4:10 PM, wrote: >> Windows-only is hardly the norm. There's at least as much software >> that's Mac-only or Linux-only as Windows-only. > > As much Mac-only software as Windows-only? Possibly, but I doubt > it although I acknowledge things are moving in that direction. > A

Re: python programming help

2013-12-09 Thread rurpy
On 12/08/2013 10:20 PM, rusi wrote: > On Monday, December 9, 2013 10:37:38 AM UTC+5:30, ru...@yahoo.com wrote: >[...] >> However it does not change the fact that people here have responded >> in rather extreme way to GG posts including calling GG users "twits" >> and claiming GG posts damage their

Re: python programming help

2013-12-09 Thread rurpy
On 12/09/2013 01:15 AM, Chris Angelico wrote: > On Mon, Dec 9, 2013 at 4:10 PM, wrote: >> We all use buggy software every day. *Every* piece of non-trival >> software is buggy -- you already know that. So you are saying >> that bugs that annoy *you* are ones that *others* should change >> their

Re: python programming help

2013-12-09 Thread rurpy
On 12/09/2013 12:57 AM, Chris Angelico wrote: > On Mon, Dec 9, 2013 at 4:07 PM, wrote: >> However it does not change the fact that people here have responded >> in rather extreme way to GG posts including calling GG users "twits" >> and claiming GG posts damage their eyesight, as well as repeated

Re: python programming help

2013-12-09 Thread Christopher Welborn
On 08/12/2013 18:14, rafaella...@gmail.com wrote: sorry but i'm new to python ;p 1. it has to be in a form of a function called people and 2. how this code takes in an age and returns the names? "it has to be in the form of a function called people", that made me laugh. Too bad he got an ans

Re: Meta Fight About Posting (was: python programming help)

2013-12-09 Thread Roy Smith
In article <058a0d03-4017-4e95-b402-94d8959ec...@googlegroups.com>, rusi wrote: > On Monday, December 9, 2013 9:14:08 PM UTC+5:30, Travis Griggs wrote: > > As long as we¹re in full scale rant drift, I¹d like to remind others > > of the time honored tradition of changing the post subject, when, >

Re: Meta Fight About Posting (was: python programming help)

2013-12-09 Thread Roy Smith
In article , Travis Griggs wrote: > The python mailing list is the only one I know of that is cross posted > between 3 different technologies. Maybe it¹s an outgrowth of the ³multi > paradigm² philosophy of python or something. Usenet is not a bicycle. -- https://mail.python.org/mailman/list

Re: Meta Fight About Posting (was: python programming help)

2013-12-09 Thread rusi
On Monday, December 9, 2013 9:55:19 PM UTC+5:30, rusi wrote: > On Monday, December 9, 2013 9:14:08 PM UTC+5:30, Travis Griggs wrote: > > As long as we’re in full scale rant drift, I’d like to remind others > > of the time honored tradition of changing the post subject, when, > > er, uh, the subject

Re: Meta Fight About Posting (was: python programming help)

2013-12-09 Thread rusi
On Monday, December 9, 2013 9:14:08 PM UTC+5:30, Travis Griggs wrote: > As long as we’re in full scale rant drift, I’d like to remind others > of the time honored tradition of changing the post subject, when, > er, uh, the subject changes. Because this obviously is not > "programming help" anymore.

Meta Fight About Posting (was: python programming help)

2013-12-09 Thread Travis Griggs
On Dec 9, 2013, at 1:34 AM, Mark Lawrence wrote: > On 09/12/2013 05:07, ru...@yahoo.com wrote: >> On 12/08/2013 05:27 PM, Mark Lawrence wrote: >>> On 09/12/2013 00:08, ru...@yahoo.com wrote: On 12/08/2013 12:17 PM, Chris Angelico wrote: > On Mon, Dec 9, 2013 at 6:06 AM, wrote:>[...] >

Re: python programming help

2013-12-09 Thread Mark Lawrence
On 09/12/2013 05:07, ru...@yahoo.com wrote: On 12/08/2013 05:27 PM, Mark Lawrence wrote: On 09/12/2013 00:08, ru...@yahoo.com wrote: On 12/08/2013 12:17 PM, Chris Angelico wrote: On Mon, Dec 9, 2013 at 6:06 AM, wrote:>[...] [...] To the OP, please ignore the above, it's sheer, unadulterated

Re: python programming help

2013-12-09 Thread Chris Angelico
On Mon, Dec 9, 2013 at 4:10 PM, wrote: > We all use buggy software every day. *Every* piece of non-trival > software is buggy -- you already know that. So you are saying > that bugs that annoy *you* are ones that *others* should change > their practice to join your boycott to fix. The ones tha

Re: python programming help

2013-12-08 Thread Chris Angelico
On Mon, Dec 9, 2013 at 4:07 PM, wrote: > However it does not change the fact that people here have responded > in rather extreme way to GG posts including calling GG users "twits" > and claiming GG posts damage their eyesight, as well as repeatedly > denying the obvious fact that GG is much easie

Re: python programming help

2013-12-08 Thread rusi
On Monday, December 9, 2013 10:37:38 AM UTC+5:30, ru...@yahoo.com wrote: > On 12/08/2013 05:27 PM, Mark Lawrence wrote: > > On 09/12/2013 00:08, wrote: > >> On 12/08/2013 12:17 PM, Chris Angelico wrote: > >>> On Mon, Dec 9, 2013 at 6:06 AM, rafaell wrote: > >[...] > > To the OP, please ignore the

Re: python programming help

2013-12-08 Thread Joel Goldstick
"why can't we all just get along?" Rodney King, RIP -- https://mail.python.org/mailman/listinfo/python-list

Re: python programming help

2013-12-08 Thread rurpy
On 12/08/2013 08:05 PM, Chris Angelico wrote: > On Mon, Dec 9, 2013 at 11:08 AM, wrote: >> I suspect many >> of them are motivated by political dislike of Google as >> a corporation, or want to stay with the 1990's technology >> they invested time in learning and don't want see change. > > Neith

Re: python programming help

2013-12-08 Thread rurpy
On 12/08/2013 05:27 PM, Mark Lawrence wrote: > On 09/12/2013 00:08, ru...@yahoo.com wrote: >> On 12/08/2013 12:17 PM, Chris Angelico wrote: >>> On Mon, Dec 9, 2013 at 6:06 AM, wrote:>[...] >[...] > To the OP, please ignore the above, it's sheer, unadulterated rubbish. > Nobody has ever been bull

Re: python programming help

2013-12-08 Thread Chris Angelico
On Mon, Dec 9, 2013 at 11:08 AM, wrote: > I suspect many > of them are motivated by political dislike of Google as > a corporation, or want to stay with the 1990's technology > they invested time in learning and don't want see change. Neither. I don't at all hate Google (I quite like the company

Re: python programming help

2013-12-08 Thread YBM
Le 08.12.2013 19:32, rafaella...@gmail.com a écrit : On Sunday, December 8, 2013 6:27:34 PM UTC, bob gailer wrote: On 12/8/2013 12:59 PM, rafaella...@gmail.com wrote: i have a dictionary with names and ages for each name. I want to write a function that takes in an age and returns the names o

Re: python programming help

2013-12-08 Thread YBM
Le 08.12.2013 20:06, rafaella...@gmail.com a écrit : i get it, thanks a lot i wrote a different one and it works def people(age): people=[name for name in dic if dic[name]==age] print(people) No it doesn't. You are printing things not returning something. and combine_list is the mos

Re: python programming help

2013-12-08 Thread YBM
Le 09.12.2013 01:00, Gregory Ewing a écrit : rafaella...@gmail.com wrote: def people(age): people=lambda age: [name for name in dic if dic[name]==age] but i don't get the lambda age part. Just to explain: YBM has tried to sabotage you by posting a solution that uses a couple of advanced

Re: python programming help

2013-12-08 Thread Mark Lawrence
On 09/12/2013 00:08, ru...@yahoo.com wrote: On 12/08/2013 12:17 PM, Chris Angelico wrote: On Mon, Dec 9, 2013 at 6:06 AM, wrote:>[...] Also, your posts are acquiring the slimy stain of Google Groups, which makes them rather distasteful. All your replies are getting double-spaced, among other p

Re: python programming help

2013-12-08 Thread rurpy
On 12/08/2013 12:17 PM, Chris Angelico wrote: > On Mon, Dec 9, 2013 at 6:06 AM, wrote:>[...] > Also, your posts are acquiring the slimy stain of Google Groups, which > makes them rather distasteful. All your replies are getting > double-spaced, among other problems. Please consider switching to a

Re: python programming help

2013-12-08 Thread Gregory Ewing
rafaella...@gmail.com wrote: def people(age): people=lambda age: [name for name in dic if dic[name]==age] but i don't get the lambda age part. Just to explain: YBM has tried to sabotage you by posting a solution that uses a couple of advanced Python features (lambda and list comprehension

Re: python programming help

2013-12-08 Thread Terry Reedy
On 12/8/2013 2:06 PM, rafaella...@gmail.com wrote: Even when you do get what lambda means and how use it, name = lambda args: expression which is a carryover from other languages, is inferior to def name(args): return expression because the function object resulting from lambda does not have

Re: python programming help

2013-12-08 Thread John Ladasky
On Sunday, December 8, 2013 10:32:31 AM UTC-8, rafae...@gmail.com wrote: [snip] > def people(age): > people=lambda age: [name for name in dic if dic[name]==age] > > people(20) [snip] > this is the code i have so far(with the help of the first post ;p). i > understand how a function and a d

Re: python programming help

2013-12-08 Thread Mark Lawrence
On 08/12/2013 19:06, rafaella...@gmail.com wrote: i get it, thanks a lot i wrote a different one and it works def people(age): people=[name for name in dic if dic[name]==age] print(people) people(20) i have one last question it asks me to test my program function by running these li

Re: python programming help

2013-12-08 Thread Chris Angelico
On Mon, Dec 9, 2013 at 6:06 AM, wrote: > but when i wrote these lines it returns me an error > Traceback (most recent call last): > File "/Users/rafaellasavva/Desktop/people.py", line 19, in > print 'Dan' in people(18) and 'Cathy' in people(18) > TypeError: argument of type 'NoneType' is n

Re: python programming help

2013-12-08 Thread rafaellasav
On Sunday, December 8, 2013 6:52:12 PM UTC, Benjamin Kaplan wrote: > On Sun, Dec 8, 2013 at 10:32 AM, wrote: > > > > > > On Sunday, December 8, 2013 6:27:34 PM UTC, bob gailer wrote: > > > > On 12/8/2013 12:59 PM, rafaella...@gmail.com wrote: > > > > > > > > > i have a dictionary with names a

Re: python programming help

2013-12-08 Thread Benjamin Kaplan
On Sun, Dec 8, 2013 at 10:32 AM, wrote: > > On Sunday, December 8, 2013 6:27:34 PM UTC, bob gailer wrote: > > On 12/8/2013 12:59 PM, rafaella...@gmail.com wrote: > > > > > i have a dictionary with names and ages for each name. I want to write a > > > function that takes in an age and returns the

Re: python programming help

2013-12-08 Thread rafaellasav
On Sunday, December 8, 2013 6:32:31 PM UTC, rafae...@gmail.com wrote: > On Sunday, December 8, 2013 6:27:34 PM UTC, bob gailer wrote: > > > On 12/8/2013 12:59 PM, rafaella...@gmail.com wrote: > > > > > > > i have a dictionary with names and ages for each name. I want to write a > > > function

Re: python programming help

2013-12-08 Thread rafaellasav
On Sunday, December 8, 2013 6:27:34 PM UTC, bob gailer wrote: > On 12/8/2013 12:59 PM, rafaella...@gmail.com wrote: > > > i have a dictionary with names and ages for each name. I want to write a > > function that takes in an age and returns the names of all the people who > > are that age. > >

Re: python programming help

2013-12-08 Thread Mark Lawrence
On 08/12/2013 18:14, rafaella...@gmail.com wrote: On Sunday, December 8, 2013 6:07:47 PM UTC, YBM wrote: Le 08.12.2013 18:59, rafaella...@gmail.com a �crit : i have a dictionary with names and ages for each name. I want to write a function that takes in an age and returns the names of

Re: python programming help

2013-12-08 Thread Gary Herron
On 12/08/2013 09:59 AM, rafaella...@gmail.com wrote: i have a dictionary with names and ages for each name. I want to write a function that takes in an age and returns the names of all the people who are that age. please help This looks like homework for a beginning programming class. Correct

Re: python programming help

2013-12-08 Thread bob gailer
On 12/8/2013 12:59 PM, rafaella...@gmail.com wrote: i have a dictionary with names and ages for each name. I want to write a function that takes in an age and returns the names of all the people who are that age. please help Welcome to the python list. Thanks for posting a question. If you we

Re: python programming help

2013-12-08 Thread Roy Smith
In article <264c1144-5d04-4ad0-aa32-f4e6770d2...@googlegroups.com>, rafaella...@gmail.com wrote: > i have a dictionary with names and ages for each name. I want to write a > function that takes in an age and returns the names of all the people who are > that age. > please help Homework problem

Re: python programming help

2013-12-08 Thread YBM
Le 08.12.2013 19:14, rafaella...@gmail.com a écrit : On Sunday, December 8, 2013 6:07:47 PM UTC, YBM wrote: Le 08.12.2013 18:59, rafaella...@gmail.com a �crit : i have a dictionary with names and ages for each name. I want to write a function that takes in an age and returns the names

Re: python programming help

2013-12-08 Thread rafaellasav
On Sunday, December 8, 2013 6:07:47 PM UTC, YBM wrote: > Le 08.12.2013 18:59, rafaella...@gmail.com a �crit : > > > i have a dictionary with names and ages for each name. > > > I want to write a function that takes in an age and returns > > > the names of all the people who are that age. > >

Re: python programming help

2013-12-08 Thread YBM
Le 08.12.2013 18:59, rafaella...@gmail.com a écrit : i have a dictionary with names and ages for each name. I want to write a function that takes in an age and returns the names of all the people who are that age. please help ageDict = { 'john':42, 'jane':36, 'paul':42 } peopleWithAge = lambda

python programming help

2013-12-08 Thread rafaellasav
i have a dictionary with names and ages for each name. I want to write a function that takes in an age and returns the names of all the people who are that age. please help -- https://mail.python.org/mailman/listinfo/python-list

Re: PYTHON PROGRAMMING HELP PLSSS !!

2007-08-03 Thread SMERSH009
On Aug 2, 6:24 pm, "Dennis" <[EMAIL PROTECTED]> wrote: > HI All, > i am a 4th year business student and i took web design online course > for fun however i did not see that last 2 chapters were python > programming.This has no relevance to my major nor does it have any > contribution to my degree.

Re: PYTHON PROGRAMMING HELP PLSSS !!URGENT

2007-08-02 Thread Danyelle Gragsone
Hi, Please do not double post. Especially with more than one email address. If someone can help you. I am sure they will. Danyelle -- http://mail.python.org/mailman/listinfo/python-list

PYTHON PROGRAMMING HELP PLSSS !!URGENT

2007-08-02 Thread alibaaba
HI All, i am a 4th year business student and i took web design online course for fun however i did not see that last 2 chapters were python programming.This has no relevance to my major nor does it have any contribution to my degree. My fun turned out to be my nightmare since i literally can not gr

python programming help

2004-12-06 Thread Alfred Canoy
Hello, Thanks for the input:-) I made a mean, median & mode program. I'm trying to figure how can I store this program in another file and opens the file to display. Any idea what to add in my source code. Thanks!     # compute the Mean, Median & Mode of a list of numbers:   sum = 0.0   prin