Re: [Tutor] Help with Guess the number script

2014-03-12 Thread Scott W Dunning
On Mar 11, 2014, at 7:50 PM, William Ray Wing w...@mac.com wrote: Simple. In Mail Preferences - Composing - Message Format - Plain Text (Your setting is probably currently Rich Text.) Got it, hopefully that helps. ___ Tutor maillist -

Re: [Tutor] Help with Guess the number script

2014-03-12 Thread Scott Dunning
On Mar 11, 2014, at 1:57 AM, Alan Gauld alan.ga...@btinternet.com wrote: OK so far, you don't need all the print statements but that's just a style issue. (You could just insert '\n' characters instead.) You’re right, I’m actually not sure why I did it that way. if guess secret - 10

Re: [Tutor] Help with Guess the number script

2014-03-12 Thread Scott Dunning
On Mar 10, 2014, at 11:18 PM, Dave Angel da...@davea.name wrote: if guess secret - 10 or guess secret - 10: Think about that line. You might even want to put in a separate function to test what it does. HINT: it's wrong. Got it! I realized what I was doing wrong. I needed that

[Tutor] Loop Issue

2014-03-12 Thread Yanni Phone
Hello all, I was following along in a book called 'Python Programming for the Absolute Beginner' by Michael Dawson and I ran into an odd problem with a loop. Dawson has the following code in his book: health = 10 trolls = 0 damage = 3 while health != 0: trolls += 1 health -= damage This

Re: [Tutor] c++ on python

2014-03-12 Thread Alan Gauld
On 11/03/14 14:27, Gabriele Brambilla wrote: Is it a library or a program? A program. it should use only standard C++ libraries. OK, If it's a program, that is, it compiles into an executable that you can run then you can run it from within Python using the subprocess module. Do you

Re: [Tutor] Trying to read dBase files

2014-03-12 Thread Alan Gauld
On 11/03/14 20:09, Dave Angel wrote: Alan Gauld alan.ga...@btinternet.com Wrote in message: I am using Python 3.3. I did some google searches and found something called dbfpy to read dbase, so I downloaded and installed it. File C:\Python33\lib\site-packages\dbfpy\dbf.py, line 260

Re: [Tutor] Loop Issue

2014-03-12 Thread Alan Gauld
On 11/03/14 13:53, Yanni Phone wrote: health = 10 trolls = 0 damage = 3 while health != 0: trolls += 1 health -= damage This seems simple enough. (This is an example of a non-terminating loop, by the way, so it is not suppose to work correctly.) My problem is that when I enter

Re: [Tutor] Help with Guess the number script

2014-03-12 Thread spir
On 03/12/2014 05:13 AM, Scott Dunning wrote: if guess secret - 10 or guess secret - 10: This is the right idea for cutting the line count but you have the comparison values wrong. Look back to earlier emails, you are repeating the same error as before. Manually think through what

Re: [Tutor] Help with Guess the number script

2014-03-12 Thread Dave Angel
Scott W Dunning scott@cox.net Wrote in message: On Mar 11, 2014, at 7:50 PM, William Ray Wing w...@mac.com wrote: Simple. In Mail Preferences - Composing - Message Format - Plain Text (Your setting is probably currently Rich Text.) Got it, hopefully that helps. Perfect, thanks.

Re: [Tutor] Trying to read dBase files

2014-03-12 Thread Mark Lawrence
On 12/03/2014 09:13, Alan Gauld wrote: On 11/03/14 20:09, Dave Angel wrote: Alan Gauld alan.ga...@btinternet.com Wrote in message: I am using Python 3.3. I did some google searches and found something called dbfpy to read dbase, so I downloaded and installed it. File

Re: [Tutor] c++ on python

2014-03-12 Thread Stefan Behnel
Alan Gauld, 12.03.2014 10:11: If it were a library then you would have to call the individual C++ functions directly using something like ctypes, which is usually more complex. ctypes won't talk to C++, but Cython can do it quite easily. Stefan

[Tutor] how do i delete the questions that i asked and it has been shared in web

2014-03-12 Thread S Tareq
this one  http://code.activestate.com/lists/python-tutor/99408/   and there are other ones as well ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] how do i delete the questions that i asked and it has been shared in web

2014-03-12 Thread Zachary Ware
On Wed, Mar 12, 2014 at 12:46 PM, S Tareq stare...@yahoo.com wrote: this one http://code.activestate.com/lists/python-tutor/99408/ and there are other ones as well This is a mailing list. Once an email is sent, you can't unsend it. -- Zach ___

Re: [Tutor] how do i delete the questions that i asked and it has been shared in web

2014-03-12 Thread S Tareq
so you can't delete the question that i have asked long time ago  On Wednesday, 12 March 2014, 18:03, Zachary Ware zachary.ware+py...@gmail.com wrote: On Wed, Mar 12, 2014 at 12:46 PM, S Tareq stare...@yahoo.com wrote: this one  http://code.activestate.com/lists/python-tutor/99408/ and

Re: [Tutor] how do i delete the questions that i asked and it has been shared in web

2014-03-12 Thread Tim Krupinski
No. On Wed, Mar 12, 2014 at 1:33 PM, S Tareq stare...@yahoo.com wrote: so you can't delete the question that i have asked long time ago On Wednesday, 12 March 2014, 18:03, Zachary Ware zachary.ware+py...@gmail.com wrote: On Wed, Mar 12, 2014 at 12:46 PM, S Tareq stare...@yahoo.com wrote:

Re: [Tutor] how do i delete the questions that i asked and it has been shared in web

2014-03-12 Thread Kodiak Firesmith
In fact all of these messages are being distributed and saved to various mailing list web mirrors as we send them. Your requests to delete the message will also appear pretty soon after you send them. On Wed, Mar 12, 2014 at 2:38 PM, Tim Krupinski tdkrupin...@gmail.comwrote: No. On Wed, Mar

Re: [Tutor] how do i delete the questions that i asked and it has been shared in web

2014-03-12 Thread Alan Gauld
On 12/03/14 17:46, S Tareq wrote: this one http://code.activestate.com/lists/python-tutor/99408/ and there are other ones as well As others have said you can't delete them One of the features of a mailing list is that everyone on the list has a copy of the email and can keep that for as long

Re: [Tutor] c++ on python

2014-03-12 Thread Alan Gauld
On 12/03/14 16:49, Stefan Behnel wrote: Alan Gauld, 12.03.2014 10:11: If it were a library then you would have to call the individual C++ functions directly using something like ctypes, which is usually more complex. ctypes won't talk to C++, but Cython can do it quite easily. I thought it

Re: [Tutor] Help with Guess the number script

2014-03-12 Thread Danny Yoo
Such errors are either obvious or invisible. A remedy is often to figure the problem on paper (or in your head if you're good at thinking visually). Here, just draw a line segment with secret in the middle and the interval borders around. Then, write there on the drawing the _values_ of the

Re: [Tutor] Loop Issue

2014-03-12 Thread Danny Yoo
This particular loop condition looks very suspicious. I would look at it more closely. When is it false? When is it true? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options:

Re: [Tutor] Loop Issue

2014-03-12 Thread Mark Lawrence
On 12/03/2014 23:18, Danny Yoo wrote: This particular loop condition looks very suspicious. I would look at it more closely. When is it false? When is it true? Context please Danny, we're not all mind readers and we don't all have photographic memories :) -- My fellow Pythonistas, ask

Re: [Tutor] Loop Issue

2014-03-12 Thread Danny Yoo
The context is the beginning of the thread: https://mail.python.org/pipermail/tutor/2014-March/100543.html with the loop: ### while health != 0: ... ### ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: