When I start introducing Python I use this chart [1]:
Five Dimensions of Python:
- Level 0: core syntax with keywords & punctuation, indentation (import,
if...)
- Level 1: a large set of built-ins (e.g. print)
- Level 2: special names with the double underlines
- Level 3: Standard
I'm on Safari On-Line sampling:
Introduction to Python by Jessica McKellar
O'Reilly Media, Inc., 2014
a multi-hour video series.
I enjoy and value getting ideas from other Python
instructors. I'm scheduled to start a new round
myself this very evening.
What's standing out for me is how often J
David & Massimo,
Our local community college will begin offering Python courses this
Fall. As is common with community colleges there is a lot of 'training'
for particular tools and languages to meet immediate needs of local
employers. As a representative of the big, research university in t
Hi David,
I teach at DePaul university where we now use Python in multiple
classes. The way we got it in was not by proposing Python in
substitution to Java or C++. I tried it and that failed for the same
reasons you mention. I got it in by starting to use Python in
algorithms classes inst
Thanks Dave --
A wonderful question that points to the great cultural divide
between compile-time versus runtime error trappers.
The compile timers flirt with the notion that somehow the
compiling step might actually constitute a *mathematical proof*
that the program is correct (if only the langu
I talked with the CIS department chairman and one of the faculty about the
possibility of teaching Python at our community college, and they weren't
interested. (Oh No, not another language ... ) Also, the lack of declarations
was a show-stopper.
I encountered this same objection from one o
At 01:41 AM 3/20/2008 +0100, Stef Mientki wrote:
>I started about a year ago with the Enthought edition
>http://code.enthought.com/enthon/
This leads to a series of deprecated links, some several months old, and no
clear guidance as to what a student should install. This website is a mess!!
>
hi David,
David MacQuigg wrote:
> Our mandelbrot demo is working nicely, thanks to all the help I've gotten
> from folks on this list. We are using only the weave package, not the full
> SciPy install. It would be nice to show some additional examples from SciPy,
> however, especially tools t
Our mandelbrot demo is working nicely, thanks to all the help I've gotten from
folks on this list. We are using only the weave package, not the full SciPy
install. It would be nice to show some additional examples from SciPy,
however, especially tools that students will find useful in later cl
I got scipy.weave working in my Mandelbrot demo in Python2.5 under Cygwin, and
the speed improvement is comparable to my hand-coded extension module.
1a) Python speed = 678 points/sec
1b) C speed = 115200 points/sec 169X
2a) Python speed = 721 points/sec
2b) C speed
pute_fractal(64, -2, 1.25, 0.5, -1.25)
>>print "done."
>>screen = pygame.display.set_mode((500,500))
>>f_surf = pygame.Surface((500, 500))
>>for x in range(500):
>> for y in range(500):
>>f_surf.set_at((x, y), pixels[x][y])
>>screen.bli
uesday, March 11, 2008 12:20:02 AM
Subject: Re: [Edu-sig] Introducing Python to Engineering Students
David,
For output graphics, you might want to have a look at Pygame. It is a wrapper
for the SDL library. It has functionality for creating graphics windows,
drawing, sprites, etc. But what m
At 07:24 PM 3/11/2008 -0700, Rob Malouf wrote:
>On Mar 11, 2008, at 5:11 PM, David MacQuigg wrote:
>>It would make a nice improvement in this Mandelbrot demo if you
>>could show me a way to significantly improve the speed of the Python
>>I already have, perhaps avoiding the need for C.
>...
>O
On Wed, Mar 12, 2008 at 5:50 AM, John Posner <[EMAIL PROTECTED]> wrote:
> IMHO, object-oriented programming is like most technologies -- it was
> developed as a solution to perceived problems. Newbies, who haven't
> perceived the problems, will have trouble appreciating the solution.
>
> -John
> > I'll modify my function to look more like yours, going for more
> > clarity with only a small sacrifice in efficiency. I can't use the
> > nice OOP style, however, because these students have studied only
> > functions. OOP is an "advanced topic" covered in a later
> course for
> > com
On Tue, Mar 11, 2008 at 2:57 PM, David MacQuigg
<[EMAIL PROTECTED]> wrote:
> Very nice!! I like the clear concise explanation of fractals. I'll add
> this link to whatever I put together.
>
> I like the way you construct the color palette, simple but effective. I'll
> have to play around wi
On Mar 11, 2008, at 2:57 PM, David MacQuigg wrote:
> I guess what I should conclude is that when performance is
> important, don't bother trying to optimize Python. Go straight to
> C, and get 10 or 100X improvement.
That hasn't always been my experience. I found that using psyco and
nump
On Mar 11, 2008, at 5:11 PM, David MacQuigg wrote:
> It would make a nice improvement in this Mandelbrot demo if you
> could show me a way to significantly improve the speed of the Python
> I already have, perhaps avoiding the need for C.
Actually, I don't see a clean way to vectorize that inn
On Mar 11, 2008, at Mar 11:8:11 PM, David MacQuigg wrote:
At 03:12 PM 3/11/2008 -0700, Rob Malouf wrote:
On Mar 11, 2008, at 2:57 PM, David MacQuigg wrote:
I guess what I should conclude is that when performance is
important, don't bother trying to optimize Python. Go straight to
C, and get
On Mar 11, 2008, at 5:11 PM, David MacQuigg wrote:
> What I would like to see is something like a simple "directive" I
> could put in my Python code to say "The following function is in C",
> and have Python set up the linkage for me.
Actually, there is! It's part of scipy and it's *very* s
At 03:12 PM 3/11/2008 -0700, Rob Malouf wrote:
>On Mar 11, 2008, at 2:57 PM, David MacQuigg wrote:
>> I guess what I should conclude is that when performance is
>>important, don't bother trying to optimize Python. Go straight to
>>C, and get 10 or 100X improvement.
>
>That hasn't always been
Many thanks for the quick and very helpful responses!!
At 08:00 PM 3/10/2008 -0700, kirby urner wrote:
>Just in case you want to look at an "all Python" solution down to the
>pixel level (using PIL):
>
>http://4dsolutions.net/ocn/fractals.html
Very nice!! I like the clear concise explanation of
e.event.get():
> if event.type == pygame.QUIT:
> sys.exit()
> #--
>
> Warren Sande
>
>
> - Original Message
> From: David MacQuigg <[EMAIL PROTECTED]>
> To: edu-sig@python.org
> Sent: Monday, March 10, 2008 10:28:21 PM
> Subject: [Edu-s
TED]>
To: edu-sig@python.org
Sent: Monday, March 10, 2008 10:28:21 PM
Subject: [Edu-sig] Introducing Python to Engineering Students
I've
been
asked
to
give
an
intro
to
Python
for
a
freshman
class
with
150
students
at
University
of
Arizona.
The
class
is
taught
in
the
On Mon, Mar 10, 2008 at 7:28 PM, David MacQuigg
<[EMAIL PROTECTED]> wrote:
> Suggestions are welcome. Has anyone done something like this before? Can
> you improve on my code (I'm not a Python expert), or even suggest something
> entirely different?
Hi Dave --
Just in case you want to look
I've been asked to give an intro to Python for a freshman class with 150
students at University of Arizona. The class is taught in the Electrical and
Computer Engineering Department, and is titled Computer Programming for
Engineering Applications. The language is C (Hanly & Koffman, Problem Sol
26 matches
Mail list logo