Re: [Edu-sig] generate digits of pi

2012-12-24 Thread Brian Blais
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

[Edu-sig] ondrag with turtle module

2010-11-13 Thread Brian Blais
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

Re: [Edu-sig] drawing with the mouse with turtle...solved?

2010-11-13 Thread Brian Blais
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

Re: [Edu-sig] Why Python?

2010-04-12 Thread Brian Blais
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

[Edu-sig] mouse input in turtle module

2010-02-03 Thread Brian Blais
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

Re: [Edu-sig] odd drawing problem with turtle.py

2010-02-01 Thread Brian Blais
, 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

[Edu-sig] odd drawing problem with turtle.py

2010-01-31 Thread Brian Blais
) 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

[Edu-sig] some turtle questions

2010-01-24 Thread Brian Blais
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

Re: [Edu-sig] teaching python using turtle module

2009-11-29 Thread Brian Blais
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

Re: [Edu-sig] thought re graphing calculators ...

2009-09-30 Thread Brian Blais
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

Re: [Edu-sig] thought re graphing calculators ...

2009-09-28 Thread Brian Blais
. 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

Re: [Edu-sig] What is the Best Way to use Python in the Windows Command Line

2008-12-15 Thread Brian Blais
, 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

Re: [Edu-sig] Python and Robots

2008-06-14 Thread Brian Blais
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

Re: [Edu-sig] Python Reloaded?

2008-02-26 Thread Brian Blais
, 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

Re: [Edu-sig] do as a keyword

2007-12-12 Thread Brian Blais
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

Re: [Edu-sig] do as a keyword

2007-12-12 Thread Brian Blais
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

Re: [Edu-sig] suggestion on using python robotics in class

2007-10-03 Thread Brian Blais
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

Re: [Edu-sig] Using objects early was Procedural front end for Zelle's graphics.py

2007-02-07 Thread Brian Blais
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

[Edu-sig] automatically grading small programming assignments

2006-12-14 Thread Brian Blais
others who teach Python handle this? thanks, Brian Blais -- - [EMAIL PROTECTED] http://web.bryant.edu/~bblais ___ Edu-sig mailing list Edu-sig

[Edu-sig] Vacuum World version 1e-6alpha ;) released

2006-04-03 Thread Brian Blais
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