On Mar 11, 2014, at 1:57 AM, Alan Gauld 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 or guess > secret -
On Mar 10, 2014, at 11:18 PM, Dave Angel 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 plus sign f
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 s
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 know
On 11/03/14 20:09, Dave Angel wrote:
Alan Gauld 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
print repr(_rec)
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 this
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 wha
Scott W Dunning Wrote in message:
>
> On Mar 11, 2014, at 7:50 PM, William Ray Wing wrote:
>>
>> Simple. In Mail Preferences -> Composing -> Message Format -> Plain Text
>> (Your setting is probably currently Rich Text.)
>>
> Got it, hopefully that helps.
Perfect, thanks.
--
DaveA
___
On 12/03/2014 09:13, Alan Gauld wrote:
On 11/03/14 20:09, Dave Angel wrote:
Alan Gauld 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.p
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
__
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
On Wed, Mar 12, 2014 at 12:46 PM, S Tareq 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
___
Tutor maillist -
so you can't delete the question that i have asked long time ago
On Wednesday, 12 March 2014, 18:03, Zachary Ware
wrote:
On Wed, Mar 12, 2014 at 12:46 PM, S Tareq wrote:
> this one http://code.activestate.com/lists/python-tutor/99408/
>
> and there are other ones as well
This is a maili
No.
On Wed, Mar 12, 2014 at 1:33 PM, S Tareq wrote:
> so you can't delete the question that i have asked long time ago
>
>
> On Wednesday, 12 March 2014, 18:03, Zachary Ware
> wrote:
> On Wed, Mar 12, 2014 at 12:46 PM, S Tareq wrote:
>
>> this one http://code.activestate.com/lists/python-tutor
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 wrote:
> No.
>
> On Wed, Mar 12, 2014 at 1:33 P
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
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 w
>
> 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 t
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:
https://mail.python.org/mailman/listinfo/tu
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 not
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:
htt
Hey Everyone,
I just got through doing a Guess-the-number script and was looking for
something else to practice on. Do any of you have any suggestions on some
things I could work on? Keep in mind I am not only extremely new to python I
am new to programming. Thanks for any suggestions!!!
Sc
Scott W Dunning writes:
> I just got through doing a Guess-the-number script and was looking for
> something else to practice on. Do any of you have any suggestions on
> some things I could work on? Keep in mind I am not only extremely new
> to python I am new to programming. Thanks for any sugge
23 matches
Mail list logo