On Dec 24, 2012, at 0:20 AM, Litvin wrote:
Or just replace
while d == d1:
with
while d == d1 and n 0:
or replace the while with a while True and a
if n==0:
raise StopIteration
bb
--
Brian Blais
bbl...@gmail.com
http://web.bryant.edu
keeps the window open, but the clicking or dragging still doesn't move
the turtle or update the window in any way.
am I doing something wrong?
thanks,
bb
--
Brian Blais
bbl...@bryant.edu
http://web.bryant.edu
On Nov 12, 2010, at 8:48 PM, Brian Blais wrote:
On Nov 12, 2010, at 8:05 PM, Steven D'Aprano wrote:
On Fri, 12 Nov 2010 19:24:50 -0500, Brian Blais wrote:
I'd like to draw on a turtle canvas, but use the mouse to direct the
turtle. I don't see a good way of getting the mouse
be ideal.
I'd prefer Teach Python/Reach Python. ;)
bb
--
Brian Blais
bbl...@bryant.edu
http://web.bryant.edu/~bblais
http://bblais.blogspot.com/
___
Edu-sig mailing list
Edu-sig@python.org
http://mail.python.org/mailman/listinfo
a button=-1 or something.
thanks,
Brian Blais
--
Brian Blais
bbl...@bryant.edu
http://web.bryant.edu/~bblais
http://bblais.blogspot.com/
___
Edu-sig mailing list
Edu-sig@python.org
http://mail.python.org/mailman/listinfo/edu-sig
, Jan 31, 2010 at 4:27 PM, Brian Blais bbl...@bryant.edu
wrote:
I'm on Python 2.5, but using the updated turtle.py Version 1.0.1 -
24. 9.
2009. The following script draws 5 circles, which it is supposed
to, but
then doesn't draw the second turtle which is supposed to simply move
forward. Any
)
self.turtle.fill(False)
self.turtle.penup()
for i in range(5):
c=Circle(randint(-350,350),randint(-250,250),10,red)
T=Turtle()
T.forward(100)
T.forward(100)
thanks,
bb
--
Brian Blais
bbl...@bryant.edu
http
the turtle can
travel? it seems I can keep moving off of the screen. Is there a
way to make it so that a forward(50) command, at the edge, either
raises an exception (at the wall) or simply doesn't move the turtle
because of the limit?
thanks!
bb
--
Brian Blais
bbl
could possibly be used with some sort of random
behavior (if
rand()0.5 ...).
Drunkard's Walk.
yes, that was the kind of thing I was thinking about.
thanks!
bb
--
Brian Blais
bbl...@bryant.edu
http://web.bryant.edu/~bblais
On Sep 28, 2009, at 16:30 , Gregor Lingl wrote:
Brian Blais schrieb:
However, as I think
about it, I can not think of a single problem where I *needed* the
graphic calculator, or where it gave me more insight than I could do
by hand.
I think I have a counterexample.
Run the script
. However, as I think
about it, I can not think of a single problem where I *needed* the
graphic calculator, or where it gave me more insight than I could do
by hand. It was a fun toy, but not the best tool.
bb
--
Brian Blais
bbl...@bryant.edu
http
, will pull up the ipython commandline. then
the students just type:
run myprog.py
whenever they want to run things.
It seems to work ok, and you don't have to muck with the path.
bb
--
Brian Blais
bbl...@bryant.edu
http://web.bryant.edu/~bblais
functional. Check it out on:
http://web.bryant.edu/~bblais/projects_html/projects.html
bb
--
Brian Blais
[EMAIL PROTECTED]
http://web.bryant.edu/~bblais
___
Edu-sig mailing list
Edu-sig@python.org
http
, after 1 class of programming.
bb
--
Brian Blais
[EMAIL PROTECTED]
http://web.bryant.edu/~bblais
___
Edu-sig mailing list
Edu-sig@python.org
http://mail.python.org/mailman/listinfo/edu-sig
the point of the
while: all that power to check for conditions, and you just use it to
check True, and then use a break inside. It's readable, I guess, but
not a programming construct I am immediately drawn to.
Brian Blais
--
Brian Blais
[EMAIL PROTECTED]
http
construct on for size, and see how
well it fits my brain after using it for a while.
bb
--
Brian Blais
[EMAIL PROTECTED]
http://web.bryant.edu/~bblais
___
Edu-sig mailing list
Edu-sig@python.org
http
before compiling to robot byte code.
bb
--
Brian Blais
[EMAIL PROTECTED]
http://web.bryant.edu/~bblais
___
Edu-sig mailing list
Edu-sig@python.org
http://mail.python.org/mailman/listinfo/edu-sig
John Zelle wrote:
I think it's important here to differentiate between doing OOP, that is,
doing
design with classes vs. just using objects. Unlike Kirby, I personally see
nothing wrong with going the procedural route with these students, but I
don't think that using some objects in this
others who
teach
Python handle this?
thanks,
Brian Blais
--
-
[EMAIL PROTECTED]
http://web.bryant.edu/~bblais
___
Edu-sig mailing list
Edu-sig
way. Let me know what you think! Please be gentle, because this is really my
first
somewhat significant python project, so there is probably some cruft from my
Matlab
and C experience (stray semi-colons here and there, etc.)
thanks,
Brian Blais
20 matches
Mail list logo