On 12/02/14 02:06, R. Alan Monroe wrote:
Based on a very quick look, its 2:36am!!
(pseudo code)
-
playing=True
while playing:
#phase 1 - fly every turn, you might die
if dead:
playing=false
break
if you make it home intact:
playing=false
br
I started on an implementation of a solitaire board game simulating a
B52 bombing run ( http://victorypointgames.com/details.php?prodId=119
). It seems like there ought to be a better way to structure this
program flow, but it's escaping me at the moment.
(pseudo code)
-
playing=True
while pla
Bob Williams Wrote in message:
> to slice those lines to get the artist and album
> names into a list.
>
> So far, so good but my output contains duplicates, so my final task is
> to work out how to get rid of them.
>
Hint: a set will contain only one of each item. So if you have a
list o
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 09/02/14 22:37, Altrius wrote:
> Hi,
>
> I’m completely new to programming in general and everything I have
> read so far has pointed me to Python. I’ll put this another way:
> All I know is that a programming language is a medium for a human
> to
Peter Otten wrote:
> As a bonus the turtle changes its direction when you hit the left or right
> array.
I think "arrow" and my fingers decide they'd rather write "array". I'll
start proof-reading of these days...
___
Tutor maillist - Tutor@python.o
Ian D wrote:
> Thanks for the help on the last one.
>
> Is it possible to restart a while loop? This doesn't work at all (surprise
> surprise)
>
> import turtle as t
>
> def start():
> global more
> more = True
>
> def stop():
> global more
> more = False
>
> more = True
>
eryksun wrote:
> On Tue, Feb 11, 2014 at 3:42 AM, Peter Otten <__pete...@web.de> wrote:
>>
>> Unfortunately the bytes --> bytes conversion codecs in Python 2 have no
>> convenient analog in Python 3 yet.
>>
>> This will change in Python 3.4, where you can use
>>
> import codecs
> codecs.de
On Tue, Feb 11, 2014 at 3:42 AM, Peter Otten <__pete...@web.de> wrote:
>
> Unfortunately the bytes --> bytes conversion codecs in Python 2 have no
> convenient analog in Python 3 yet.
>
> This will change in Python 3.4, where you can use
>
import codecs
codecs.decode(b"ff10", "hex")
> b'\
Ian D Wrote in message:
> Thanks for the help on the last one.
>
> Is it possible to restart a while loop? This doesn't work at all (surprise
> surprise)
>
> import turtle as t
>
> def start():
> global more
> more = True
>
> def stop():
> global more
> more = False
>
>
On 11/02/14 11:06, Ian D wrote:
Is it possible to restart a while loop?
Sorry, I'm sure you know what you mean but I'm not clear.
What do you mean by "restart a while loop"?
Do you mean after you exited it?
If so put the loop in a function and call the function again.
Do you mean from inside
Thanks for the help on the last one.
Is it possible to restart a while loop? This doesn't work at all (surprise
surprise)
import turtle as t
def start():
global more
more = True
def stop():
global more
more = False
more = True
while True:
while more:
t.onkey(
Ian D wrote:
> I am trying to exit a while loop whilst using turtle graphics.
> I don't seem to have the logic correct at all.
> I have tried a few different things
>
> These might seem a bit illogical to you guys but to me they make some
> sense, sadly
>
> I just don't really grasp these while
I am trying to exit a while loop whilst using turtle graphics.
I don't seem to have the logic correct at all.
I have tried a few different things
These might seem a bit illogical to you guys but to me they make some sense,
sadly
I just don't really grasp these while loops and their usage.(obviou
Alan,
roger that and thanks a bunch. now replying with reply all, i am a super
noob and thanks for the kind adivce
On Tue, Feb 11, 2014 at 10:31 AM, ALAN GAULD wrote:
> CCing the list. Please use Reply All when responding.
>
> > thanks Alan, i understand now zero is False.
>
> That's right. but
james campbell wrote:
> I have been currently trying to get a small piece of code to work, but
> keep getting an error:
>
> header_bin = header_hex.decode('hex')
> AttributeError: 'str' object has no attribute 'decode'
>
>
> The source of this code is from:
> https://en.bitcoin.it/wiki/Block_ha
15 matches
Mail list logo