Re: [Tutor] Python Help

2010-09-28 Thread Steven D'Aprano
On Tue, 28 Sep 2010 02:15:52 pm masawudu bature wrote: I'm having a hard time finding the count of divisors that are even. Help anybody? Here's my code. The output is suppose to count the number of even divisors the range has. I don't understand the question. What do you mean by divisors

[Tutor] Python Help

2010-09-27 Thread masawudu bature
I'm having a hard time finding the count of divisors that are even. Help anybody? Here's my code. The output is suppose to count the number of even divisors the range has. def evenCount(b) : for n in range(x, y+1) : count = 0 if n % 2 == 0 : count += n/3

Re: [Tutor] Python Help

2010-09-27 Thread David Hutto
On Tue, Sep 28, 2010 at 12:15 AM, masawudu bature mass0...@yahoo.ca wrote: I'm having a hard time finding the count of divisors that are even. Help anybody? Here's my code. The output is suppose to count the number of even divisors the range has. def evenCount(b) :     for n in range(x,

Re: [Tutor] Python Help - How to end program

2010-07-29 Thread Alan Gauld
Jason MacFiggen jmacfig...@gmail.com wrote Python keeps looping when it gets past the int 0, how do I end the program when it the int 0 or 0. while True: if mo_hp 0: print The Lich King has been slain! elif my_hp 0: /etc... When using a while True loop you

[Tutor] Python Help - How to end program

2010-07-28 Thread Jason MacFiggen
Python keeps looping when it gets past the int 0, how do I end the program when it the int 0 or 0. my_hp = 50 mo_hp = 50 my_dmg = random.randrange(1, 20) mo_dmg = random.randrange(1, 20) endProgram = end() while True: if mo_hp 0: print The Lich King has

Re: [Tutor] Python Help - How to end program

2010-07-28 Thread Benjamin Castillo
Jason   Are you trying to prevent negative numbers?   Ben --- On Wed, 7/28/10, Jason MacFiggen jmacfig...@gmail.com wrote: From: Jason MacFiggen jmacfig...@gmail.com Subject: [Tutor] Python Help - How to end program To: tutor@python.org Date: Wednesday, July 28, 2010, 9:01 PM Python keeps

Re: [Tutor] Python Help - How to end program

2010-07-28 Thread Mark Tolonen
Jason MacFiggen jmacfig...@gmail.com wrote in message news:aanlktinevw8zje7fxktomks+tbrp=trmb7sb7pbkt...@mail.gmail.com... Python keeps looping when it gets past the int 0, how do I end the program when it the int 0 or 0. my_hp = 50 mo_hp = 50 my_dmg = random.randrange(1, 20) mo_dmg

Re: [Tutor] Python help please

2010-03-23 Thread spir ☣
On Mon, 22 Mar 2010 22:31:58 + laura castañeda laura_cast...@hotmail.com wrote: Hi my name is Laura and im currently trying to solve one of the challenges in the book: Python Programming, second edition by Michael Dawson... I'm stuck in the 5 chapter because of this challenge, im the

[Tutor] Python help please

2010-03-22 Thread laura castañeda
Hi my name is Laura and im currently trying to solve one of the challenges in the book: Python Programming, second edition by Michael Dawson... I'm stuck in the 5 chapter because of this challenge, im the kinda person who dont give up so i have to solve this challenge or else i cant move on its

Re: [Tutor] Python help please

2010-03-22 Thread Alan Gauld
laura castañeda laura_cast...@hotmail.com wrote Hi my name is Laura and im currently trying to solve one of the challenges in the book: Python Programming, ... if u can help me with it. Right now im trying to teach my self programming and i found the book really useful Hi feel free to sitgn

[Tutor] python help needed

2009-10-12 Thread mazher ahmad
i wana make ToC/headings for any PDF documents ,PDFminer solves the my problem if ToC are given.i came across many files where there is no Toc. Does any one know ,how to extract ToC/headings from such files. thanx

Re: [Tutor] python help needed

2009-10-12 Thread Kent Johnson
On Mon, Oct 12, 2009 at 2:15 AM, mazher ahmad mazher_an...@hotmail.com wrote: i wana make ToC/headings for any PDF documents ,PDFminer solves the my problem if ToC  are given.i came across many files where there is no Toc. Does any one know ,how to extract ToC/headings from such files. I

Re: [Tutor] Python help

2009-04-25 Thread Alan Gauld
IT_ForMe snice14...@aol.com wrote cart = {apple:2.00, orange:2.50, banana:1.75} You set this up but then don't use it. Also your problem statement said *some* items were taxable, implying some were not. You might want to record whether an item is taxable in the dictionary too. print cart

[Tutor] Python help

2009-04-22 Thread IT_ForMe
Anyone know how to program this using Python Add up the prices for items in a shopping cart. Some items are taxable and some items are not. You may assume a 7% tax rate for all taxable items. Apply a 10% discount if the customer is a student. (hint, instead of asking the user to input items, set

Re: [Tutor] Python help

2009-04-22 Thread Robert Berman
Yes. Show us your solution and perhaps we can help you make it a tad more efficient. Robert Berman IT_ForMe wrote: Anyone know how to program this using Python Add up the prices for items in a shopping cart. Some items are taxable and some items are not. You may assume a 7% tax rate for

Re: [Tutor] Python help

2009-04-22 Thread W W
On Wed, Apr 22, 2009 at 11:08 AM, IT_ForMe snice14...@aol.com wrote: Anyone know how to program this using Python Add up the prices for items in a shopping cart. Some items are taxable and some items are not. You may assume a 7% tax rate for all taxable items. Apply a 10% discount if the

[Tutor] Python HELP

2008-10-24 Thread A .K Hachem
hey there, if anyone can help me with an assignment im stuck in for a fee i will be grateful *** Regards. A K. Hachem EMAILING FOR THE GREATER GOOD Join me ___ Tutor maillist - Tutor@python.org

Re: [Tutor] Python HELP

2008-10-24 Thread Kent Johnson
On Fri, Oct 24, 2008 at 1:18 PM, A .K Hachem [EMAIL PROTECTED] wrote: hey there, if anyone can help me with an assignment im stuck in for a fee i will be grateful We will help for free if you show us what you have done and ask specific questions. We won't do your homework for you. Kent

Re: [Tutor] [Python-Help] [EMAIL PROTECTED]

2008-02-11 Thread bob gailer
Artur Sousa wrote: What's the difference between: code for a in range(2, 10): for n in range(2, a): if a % n == 0: print a, 'equals', n, '*', a/n break else: print a, 'is a prime number' /code and code for a in range(2, 10):

[Tutor] python help

2007-10-21 Thread SwartMumba snake
I have tried to find out the solution my self, and have failed to do so. So here is my problem: I want to submit text into an edit box on a web page. ie the equivalent of me typing text into the edit box and clicking the submit button. __ Do You

[Tutor] python help

2007-10-21 Thread Michael Langford
http://developer.yahoo.com/python/python-rest.html#post On 10/21/07, SwartMumba snake [EMAIL PROTECTED] wrote: I have tried to find out the solution my self, and have failed to do so. So here is my problem: I want to submit text into an edit box on a web page. ie the equivalent of me typing

[Tutor] Python help

2006-03-28 Thread Natasha Menon
hi,i need help on a terrible homework assignment. do ul offer hw help?natasha Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Python help

2006-03-28 Thread Danny Yoo
On Tue, 28 Mar 2006, Natasha Menon wrote: i need help on a terrible homework assignment. do ul offer hw help? Not directly. Your homework is really your own to do. Please try to avoid the temptation of just posting a homework question here and hoping that someone will do the work for you.

Re: [Tutor] Python help

2006-03-28 Thread Hugo González Monteverde
Why not post where you are stuck or what you are trying to understand? and we'll give you help and direction. What we cannot do is solve your homework for you. Hugo Natasha Menon wrote: hi, i need help on a terrible homework assignment. do ul offer hw help?

Re: [Tutor] python help

2006-02-09 Thread Alan Gauld
Ben, Write a function that that uses X and Y techniques. I realise teachers have to test mastery of certain techniques, but they seem to lack the imagination. To be fair to teachers, its often the students who lack imagination. If you pose the problem as write an application to count the

Re: [Tutor] python help

2006-02-09 Thread Alan Gauld
has no human context whatsoever, so of course it's a useless homework problem. Why would someone want to take a useless histogram of a bunch of letters? Erm me! Communications analysts and cryptographers do that all the time! :-) The problem is fine, it's the context that would give it a

[Tutor] python help

2006-02-08 Thread Natasha Menon
Hi,I have a few doubts in python programming. C if any of u can help me out. 1. In a file called string_stuff.py i have to write a function called frequencies that takes a string as a parameter and returns a dictionary where the keys are the characters from the string and each value is

Re: [Tutor] python help

2006-02-08 Thread Matthew Webber
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Natasha Menon Sent: 08 February 2006 17:19 To: tutor@python.org Subject: [Tutor] python help Hi, I have a few doubts in python programming. C if any of u can help me out

Re: [Tutor] python help

2006-02-08 Thread Danny Yoo
These sound like homework questions, in which case it would not be right for us to just give you the answer (and it would not be right for you to ask for it). Agreed; these are not small questions at all. Natasha, if you're having trouble, please be more specific about what you're getting

Re: [Tutor] python help

2006-02-08 Thread Alan Gauld
I have a few doubts in python programming. C if any of u can help me out. Have no doubts - Python can do all of this. In a file called string_stuff.py i have to write a function called frequencies that takes a string as a parameter and returns a dictionary where the keys are the

Re: [Tutor] python help

2006-02-08 Thread Ben Vinger
Why are these homework programming challenges so recognisable? It boils down to: Write a function that that uses X and Y techniques. The function may be hard and challenging to write but doesn't ever do anything interesting or anything that is useful and complete on its own. I realise teachers

Re: [Tutor] python help

2006-02-08 Thread Danny Yoo
I realise teachers have to test mastery of certain techniques, but they seem to lack the imagination. I agree; the problem here, I think, is that these homework questions often focus WAY too much on Python-specific features, rather than on fundamental issues, and so the questions end up

Re: [Tutor] [Python-Help] Variable question

2005-07-15 Thread Danny Yoo
[Note: try to avoid crossposting. The Mailing List Ettiquette FAQ: http://www.gweep.ca/~edmonds/usenet/ml-etiquette.html explains why crossposting isn't such a good idea usually. I'm taking [EMAIL PROTECTED] out of CC now.] I am trying to pass a variable into this ESRI function and it

<    1   2