[Edu-sig] interesting Jupyter Notebooks useful for teaching Python (on Github)

2016-07-27 Thread kirby urner
http://nbviewer.jupyter.org/github/4dsolutions/Python5/blob/master/Atoms%20in%20Python.ipynb (Atom class ideas) http://nbviewer.jupyter.org/github/4dsolutions/Python5/blob/master/Pi%20Day%20Fun.ipynb (tau stuff) http://nbviewer.jupyter.org/github/4dsolutions/Python5/blob/master/Polyhedrons%20101.

[Edu-sig] (no subject)

2016-07-27 Thread kirby urner
rator) * generators, decorators, context managers, descriptors But always with spiraling i.e. we keep going back to the beginning and iterating through a bunch of stuff. Kirby # -*- coding: utf-8 -*- """ Created on Tue Jul 26, 2016 Course: PYT-PR (Saisoft.net) Session 07 Kirby Urn

Re: [Edu-sig] teaching Python 3.5 in 2016: snapshot

2016-07-21 Thread kirby urner
apologies for formatting, striving for better readability this time... not repeating the source code, just the other part. Reformatted: --- From: kirby urner Date: Thu, Jul 21, 2016 at 2:02 PM Subject: Re: teaching Python 3.5 in 2016: snapshot To: "edu-sig@python.org"

Re: [Edu-sig] teaching Python 3.5 in 2016: snapshot

2016-07-21 Thread kirby urner
I'm at in the current 5-week course I'm teaching >>> annotations What I call "grand unification" is up ahead where we show how a context manager mayb be built with generator as a decorator. Haven't gotten there yet with this class. That's almost black belt, l

[Edu-sig] teaching Python 3.5 in 2016: snapshot

2016-07-18 Thread kirby urner
I'm prepping for class tomorrow, as a Python instructor for employed adults eligible for California State funded professional development electives, not for college credit but career-relevant nonetheless. My approach is to use collections.namedtuple to show the tuple (a sequence type, like a list)

Re: [Edu-sig] Edu-sig Digest, Vol 156, Issue 7

2016-07-13 Thread kirby urner
On Wed, Jul 13, 2016 at 5:22 PM, kirby urner wrote: > > I've you mean what's posted here, I'm not reading much into it. > Sorry, "If you mean..." ... my English decays as the day wears on, plus I'm pre-occupied... excuses excuses. Kirby

Re: [Edu-sig] Edu-sig Digest, Vol 156, Issue 7

2016-07-13 Thread kirby urner
I've you mean what's posted here, I'm not reading much into it. The Microbit hardware is not accessible in the US right now so I'm staying out of it. Anyway my own forte isn't low-level hardware "make the lights blink" coding in the first place, beyond some dinking around in assembler. You have

[Edu-sig] a next edition of a Python for adults course

2016-07-13 Thread kirby urner
f = open("elements.json", "r") the_dict = json.load(f) f.close() all_elements = {} for symbol, data in the_dict.items(): all_elements[symbol] = Element(*data) # "explode" data into 4 inputs Here's my outline from last night: # -*- co

Re: [Edu-sig] more follow-up re Pycon / EduSummit

2016-07-09 Thread kirby urner
> > > > Did anyone else see The Martian with Tom Hanks? That was hex code that > saved his life. A coded message from NASA perhaps? :-D > > Sorry, not Tom Hanks in that one. Matt Damon. My bad. Mentioned in last paragraph in this blog post too: http://controlroom.blogspot.com/2016/07/base-10-

[Edu-sig] Python as a Second Language (PSL)

2016-07-05 Thread kirby urner
On Tue, Jul 5, 2016 at 9:14 AM, kirby urner wrote: > > > What's standing out for me is how often Jessica > uses the phrase "just like in math class" or "as > you'd expect from math class". > > Exactly, reminding viewers of "math class&qu

[Edu-sig] Introducing Python... callables = {types, functions}

2016-07-05 Thread kirby urner
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

Re: [Edu-sig] Let's dump the Graphing Calculators!

2016-06-30 Thread kirby urner
On Thu, Jun 30, 2016 at 3:01 AM, Jason Blum wrote: > Interesting article about the whole Texas Instruments Graphing Calculator > scam: > > https://mic.com/articles/125829/your-old-texas-instruments-graphing-calculator-still-costs-a-fortune-heres-why > > Excellent article, thanks. Whereas I have

Re: [Edu-sig] more follow-up re Pycon / EduSummit

2016-06-28 Thread kirby urner
Greeting AJG -- The background image in your blog shows what look to be emulated TI calculators on every student's screen, and I was wondering if the nSpire CAS TIs you mentioned using were actually emulated, yet licensed on a per seat basis which is why they needed to be donated. Apologies for m

Re: [Edu-sig] more follow-up re Pycon / EduSummit

2016-06-24 Thread kirby urner
Absolutely, I think of you as one of the five or six active Pythonic Math teachers, plus or minus a few. The rest are CS teachers, which I salute, but it's not a STEM discipline except maybe hiding behind the E and the Es are known to be shy, non-combative, pocket-protector nerd types who don't sta

Re: [Edu-sig] more follow-up re Pycon / EduSummit

2016-06-22 Thread kirby urner
Thanks Nicholas that's entirely consistent with what you said at Pycon, I'll be patient. :-D In the meantime I purchased the newest Pi today (free shipping from Amazon), my main motivation being to work through examples in Peter Farrell's book, Hacking Math Class (is that title too scary for non-g

[Edu-sig] more follow-up re Pycon / EduSummit

2016-06-22 Thread kirby urner
Quiet around here, because the action is all on Twitter I think. Anyway, more blogged followup. I still can't find a Micro:Bit for sale in this neck of the woods, like at Fry's (our electronics superstore) or SurplusGizmos. http://worldgame.blogspot.com/2016/06/more-edusummit-business.html What

[Edu-sig] PD for math teachers (was digest)

2016-06-06 Thread kirby urner
<< SNIP >> It's going to be slow going, but with resources like Amit's book, my book, > and Kirby's future book, math teachers will no longer feel alone in wanting > to modernize their field. > > Peter Farrell > Thanks for reminding me of my future book. I just emailed you some draft text sugges

Re: [Edu-sig] Edu-sig Digest, Vol 155, Issue 3

2016-06-06 Thread kirby urner
I'll aim to put all "out of office" auto-responders on 'mod' meaning they'll queue for approval (or not). -- Kirby On Mon, Jun 6, 2016 at 9:04 AM, Marianne McKenna < mamcke...@sch.ci.lexington.ma.us> wrote: > I am currently out of the office. If you need help, please contact > building tech supp

Re: [Edu-sig] How programming supports math, not the other way around

2016-06-05 Thread kirby urner
Great article. I introduced Peter Farrell around . I'm not an employee there just someone kicking around in the code school space, coming up with ideas. Peter, a math teacher by training and credential, shares my enthusiasm for introducing a real REPL, along with saving / reusing functions. I h

Re: [Edu-sig] How programming supports math, not the other way around

2016-06-05 Thread kirby urner
My apologies to Amit and request for forgiveness in advance in taking quite a few hours to approve this. Pycon is just ending and the other listowner has much further to travel. I'll aim to get faster. Amit's posts won't queue after this. -- Kirby On Sat, Jun 4, 2016 at 1:19 PM, Amit Saha wr

[Edu-sig] @ for "complicated multiplication"

2016-06-02 Thread kirby urner
Thanks to Guido's keynote at Portland Pycon 2016, I finally absorbed that @ had joined the ranks of overloadable operators. In reading up on the history of complex numbers and such, and group theory especially (also referenced by Guido in his keynote), I've found how mathematicians exulted to disc

[Edu-sig] great eduSummit, thanks to all!

2016-05-30 Thread kirby urner
I was glad to see both our Python.org listservs (mailman) get ample press @ eduSummit / Portland Pycon. We have both a sig and a wg. I wrote a blog post during the event as is my habit at these conferences. ** Great meeting some new-to-me people, e.g. QuantumDoug (reminds me of PyDanny in terms

[Edu-sig] anyone using blockchain api who wants to share about it?

2016-05-14 Thread kirby urner
https://github.com/blockchain/api-v1-client-python/blob/master/README.md https://blockchain.info/api https://blockchain.info/ More context: http://bit.ly/2297gsa (math teacher track) Kirby Comix: https://xkcd.com/1553/ https://www.google.com/search?q=bitcoin+comics&safe=off&source=lnms&tbm=isch

Re: [Edu-sig] BI about Code Schools

2016-04-30 Thread kirby urner
On Fri, Apr 29, 2016 at 12:20 PM, kirby urner wrote: > > As some of you know, I've been studying the emerging market > for "code schools", not an entirely new phenomenon, but > spiraling through a next iteration around now. > > Why am I interested? > > Bec

Re: [Edu-sig] more simmering debate...

2016-04-30 Thread kirby urner
On Thu, Apr 21, 2016 at 11:23 AM, kirby urner wrote: << SNIP >> > Thinking in Python includes thinking about ordinary everyday things in > Python. It doesn't mean fantasizing about the guts of a Von Neumann > architecture computer unless you really need that to be y

[Edu-sig] more about a classic code school spiral...

2016-04-29 Thread kirby urner
On Fri, Apr 29, 2016 at 12:20 PM, kirby urner wrote: << SNIP >> > Here's one of my recent BI-like findings, using my own neural > net (the one between my ears): code schools are in need of > on-the-shelf prototypes that students might hack on, both alone >

[Edu-sig] BI about Code Schools

2016-04-29 Thread kirby urner
As some of you know, I've been studying the emerging market for "code schools", not an entirely new phenomenon, but spiraling through a next iteration around now. Why am I interested? Because per my LinkedIn profile, I've been working in this arena for a long time, back to the 1980s when I was a

Re: [Edu-sig] anti-idiom checker?

2016-04-27 Thread kirby urner
ource the (anti)patterns for auto-checking! :) > > http://docs.quantifiedcode.com/python-anti-patterns/ > > The tool > http://docs.quantifiedcode.com/patterns/language/index.html > > On Wed, Apr 20, 2016 at 11:14 PM, kirby urner > wrote: > >> >> >>> ps.

Re: [Edu-sig] Libro: Aprendiendo a programar en Python con mi Computador

2016-04-22 Thread kirby urner
2016-04-21 19:06 GMT-07:00 Sergio Rojas : > > El mismo lo hemos hecho disponible en : > > https://github.com/rojassergio/Aprendiendo-a-programar-en-Python-con-mi-computad > or > > Saludos, > > Sergio > Thanks Sergio! I'm seeing a solid intro to the scipy stack, with a heads first dive into sym

Re: [Edu-sig] more simmering debate...

2016-04-21 Thread kirby urner
On Wed, Apr 20, 2016 at 11:00 PM, Iwan Vosloo wrote: > Hi Kirby, > > You may be interested in Dijkstra's take on teaching via metaphor: > https://www.cs.utexas.edu/~EWD/transcriptions/EWD10xx/EWD1036.html > I am not sure exactly how it applies to your case. > > I'm going through this. Interest

Re: [Edu-sig] more simmering debate...

2016-04-20 Thread kirby urner
I'm working to forge that connection more explicitly myself. The idea of > "frames" (as in time frames, frames of file, intervals of action) figures > in. > > Kirby > "frames of film" I meant to say (not "file"). The browser window frame = puppet theater is part of it. JavaScript pulls the stri

Re: [Edu-sig] more simmering debate...

2016-04-20 Thread kirby urner
hat connection more explicitly myself. The idea of "frames" (as in time frames, frames of file, intervals of action) figures in. Kirby # -*- coding: utf-8 -*- """ Created on Wed Apr 20 16:44:44 2016 @author: Kirby Urner Carnival Guy (aka "geek", luvs chicken)

Re: [Edu-sig] more simmering debate...

2016-04-20 Thread kirby urner
Sounds like we agree Carl. The "blueprint" metaphor is not that great. It keeps us from thinking more fluently about OO after awhile. A straitjacket. Kirby ___ Edu-sig mailing list Edu-sig@python.org https://mail.python.org/mailman/listinfo/edu-sig

Re: [Edu-sig] more simmering debate...

2016-04-20 Thread kirby urner
On Wed, Apr 20, 2016 at 1:53 PM, kirby urner wrote: << SNIP >> > I like to say the class is a "mother ship" and serves as a kind of "home > base" or "platform". How about an "amusement park"? > > Another one to limber up on:

Re: [Edu-sig] more simmering debate...

2016-04-20 Thread kirby urner
g we internalize our type inheritance and "is a" might not apply in quite the same way in this particular knowledge domain. Keep an open mind. # -*- coding: utf-8 -*- """ Created on Wed Apr 20 14:56:55 2016 @author: Kirby Urner 10 Cloverfield Lane, Nowhere, Nebraska

[Edu-sig] more simmering debate...

2016-04-20 Thread kirby urner
I want to suggest that the much-used metaphor (by me included): "class is a blueprint, with instances the buildings made from it" (houses usually) is a good start, but not nuanced enough to take us all the way to the end of our story. These days I've taken a two pronged approach: yes, OO is mea

Re: [Edu-sig] anti-idiom checker?

2016-04-20 Thread kirby urner
> > ps.: I imagine I could make sth via AST analysis... > -- > Or maybe some regex that looks for "for bar in range(len(foo)): ...foo[bar]" # (in the for's scope) 'cept I don't know regexes well enough to write that. :-D It could just say "slap with wet fish ("for block" starting line 10)" i

Re: [Edu-sig] of Brython, JavaScript and closures

2016-04-15 Thread kirby urner
On Fri, Apr 15, 2016 at 10:40 AM, kirby urner wrote: > > The increm function was originally looking in the global namespace for x... > That's not quite right either as this is simply wrong as a complete module: x = 0 def createIncrementor(x): def increm():

[Edu-sig] of Brython, JavaScript and closures

2016-04-15 Thread kirby urner
Those of you tracking the Cuba working group will have seen that Brython is to be a topic [0]. That's "Python is the browser", which I'm eager to try (haven't yet). Brython is a segue to JavaScript, which I'm relearning from scratch ('The Good Parts' etc.). Over on mathfuture I'm continuing to d

[Edu-sig] another look at sorting generic objects by attribute...

2016-04-12 Thread kirby urner
# -*- coding: utf-8 -*- """ Created on Tue Apr 12 14:38:28 2016 @author: Kirby Urner, 4Dsolutions.net Tips and Tricks: Note use of **self.__dict__ in the __repr__, and print(*sorted(L)). Also, remember sep= and end= are overridable keyword args to print(). Related: data-on

[Edu-sig] python from the very beginning: "we" versus "it"

2016-04-07 Thread kirby urner
I think what older folks like me need to remember is that people coming from cell phones and tablets may have a very sketchy concept of a "file system". I go back to DOS and Windows, where the File Manager was a centerpiece. If you've drilled down through folders on a laptop, then maybe you've se

[Edu-sig] from back to front end (SQL to HTML)

2016-04-04 Thread kirby urner
be a different language performing the same task. I use collections.namedtuple, one of my favorites, and exercise the DB API to a minimum, leaving plenty of room for others to expand. Kirby === # -*- coding: utf-8 -*- """ Created on Sun Apr 3 14:09:02 2016 @author: Kirby Urner (c) MI

[Edu-sig] erratum? Bioinformatics book...

2016-03-31 Thread kirby urner
I wonder if anyone else out there in subscriber-world has Python Programming for Biology, by Stevens and Boucher. I'm enjoying it and learning a lot. PDB files... On page 75 this is given as the wrong way to pass a function for which you wish to set up some default parameters: def jobFunc(arg1,

Re: [Edu-sig] Interactive Coding Web Pages?

2016-03-30 Thread kirby urner
Alas I lost my osgarden.appspot.com to the new Google App Engine too. Just a simple I-Ching machine based on Unicode in the source... far less sophisticated than Pykata. I'm one who thinks fierce concentration on projects feeds the Zeitgeist in ways we cannot measure accurately. Pygeo made a big

Re: [Edu-sig] Interactive Coding Web Pages?

2016-03-30 Thread kirby urner
On Wed, Mar 30, 2016 at 11:10 AM, kirby urner wrote: > Has anybody done this? Is there a template available for doing this, or is >> it a custom job? >> > > At O'Reilly our approach was to spin up a workstation in the could, > ... in the cloud, not the could (d

Re: [Edu-sig] Interactive Coding Web Pages?

2016-03-30 Thread kirby urner
On Wed, Mar 30, 2016 at 10:24 AM, Peter Farrell wrote: > Hello to the Group! > > I'm redesigning my math-using-Python-programming course and need your > input. > > I'd like to have the participants enter their code on a site like they do > at CodingBat or CodeWars: the site tests the code and imm

[Edu-sig] remembering Python...

2016-03-26 Thread kirby urner
Here's the somewhat nostalgically named "Remembering Python": https://youtu.be/6xQxhD29Rdc (a short Youtube for Python teachers) Twas from a last session (ten of ten) looking back on what we'd covered. I'm not excerpting this recording verbatim from the class. Rather, I'm going over some of wh

[Edu-sig] Pi Day / Jupyter NBs: new Youtube

2016-03-22 Thread kirby urner
My newest Youtube on Jupyter Notebooks, Pi Day theme: https://youtu.be/x61uUu_amDk I just got Camtasia for Mac and this was my first project using it. Kirby ___ Edu-sig mailing list Edu-sig@python.org https://mail.python.org/mailman/listinfo/edu-sig

Re: [Edu-sig] some real teaching code I use with my code school students

2016-03-20 Thread kirby urner
On Fri, Mar 18, 2016 at 6:18 PM, kirby urner wrote: > Here's some code I used with students last Monday, in Session 8 of 10. > > They've covered all the Python keywords as of Session 7 but we still need > to keep going over all we've learned, seeing how the concepts me

[Edu-sig] welcome to algebra city!

2016-03-19 Thread kirby urner
One of my mainstays, when it comes to teaching Python, is the Composable class. I worked on this Python type with Steve Holden back in the day, when he was writing his four part Python curriculum for O'Reilly School of Technology. His version of Composable shows up in Chapter One of the fourth co

[Edu-sig] some real teaching code I use with my code school students

2016-03-18 Thread kirby urner
results in a different exception still in need of handling even after the scope of the with block. Kirby # -*- coding: utf-8 -*- """ Created on Thu Feb 11 04:58:14 2016 @author: Kirby Urner Copyleft MIT License >From the docs: sys.exc_info() This function returns a tup

[Edu-sig] Pi Day Fun (3.14, 2016)

2016-03-14 Thread kirby urner
http://nbviewer.jupyter.org/github/4dsolutions/Python5/blob/master/Pi%20Day%20Fun.ipynb The above URL renders a Github-saved public I-Python Notebook using nbviewer, a utility for rendering any Jupyter notebook with a public URL. My example Python code is generator-centric as successive approxima

[Edu-sig] another code school tool ( + other topics)

2016-03-14 Thread kirby urner
*COOL TOOL*: Another tool I've been meaning to mention, apropos of recent threads: http://www.freecodecamp.com/ I signed up for it wearing my PDX Code Guild hat [1], interested in "the competition" but then I'd say FreeCodeCamp is operating in a different ballpark, too distant from ours to be co

[Edu-sig] outlining a Python course...

2016-03-13 Thread Kirby Urner
Last month I offered some admittedly simplistic heuristics regarding how a boot camp / code school might use the colored belt system of martial arts to signal progress to a goal. https://mail.python.org/pipermail/edu-sig/2016-February/011368.html Applied to Python, the formula was simply one of "

Re: [Edu-sig] Edu-sig Digest, Vol 152, Issue 7

2016-03-09 Thread kirby urner
On Wed, Mar 9, 2016 at 11:06 AM, Peter Farrell wrote: > Hi, Kirby, > > Thanks for the info about Cloud 9. My Python projects don't run, and all I > get is the message on the new page: > >> "It worked! >> Congratulations on your first Django-powered page. >> Of course, you haven't actually done an

[Edu-sig] Cloud9 vs. PythonAnywhere

2016-03-09 Thread kirby urner
On Wed, Mar 9, 2016 at 8:16 AM, kirby urner wrote: > > > On Wed, Mar 9, 2016 at 7:01 AM, kirby urner wrote: > > << SNIP >> > > >> I also just signed up for a Cloud9 account. I look forward to comparing >> it with PythonAnywhere.com >> >

Re: [Edu-sig] Trinket!

2016-03-09 Thread kirby urner
On Wed, Mar 9, 2016 at 7:01 AM, kirby urner wrote: << SNIP >> > I also just signed up for a Cloud9 account. I look forward to comparing > it with PythonAnywhere.com > > Kirby > > Getting my test Flask application running on Cloud9 was easy, though I think it

[Edu-sig] Trinket!

2016-03-09 Thread kirby urner
Wow, thanks Peter, for turning me on to Trinket! http://blog.trinket.io/why-python/ I'm looking forward to using it a lot, maybe even as soon as tonight when I teach my next class. I also just signed up for a Cloud9 account. I look forward to comparing it with PythonAnywhere.com Kirby On We

Re: [Edu-sig] Python in Schools in the UK

2016-03-08 Thread kirby urner
On Tue, Mar 8, 2016 at 4:39 AM, Brady, Tim wrote: > Hi People > > I hope you can help. I am interested in the many schools in the UK who are > looking at or have already adopted a cloud hosted environment for > delivering applications to their students. > > Python is being used in many schools/co

[Edu-sig] edu-sig ownership changed

2016-03-02 Thread kirby urner
Greetings educators -- Naomi Ceder and I have taken over the listowner role as of today. I just went through the backlog of deferred posts and approved a bunch. Some will show up in last month's archive, such as Peter Farrell's re Project Euler. If you're not seeing a post you wanted to make, f

Re: [Edu-sig] raging debates and the relevance of a real education

2016-03-01 Thread kirby urner
> > What is your opinion? > Is FBI attacking the privacy of iphone users? > > I think a state government should not be banned from running businesses, applying its own decals and ideals, and that Uncle Sam Smartphones or whatever could be handed out, free of charge, to underprivileged, say through

[Edu-sig] rounding out the debate

2016-03-01 Thread kirby urner
I don't think Juliano will mind my getting this posted given it was addressed to edu-sig in the first place consider this yet another test. Kirby From: Juliano Date: Tue, Mar 1, 2016 at 6:36 PM Subject: Re: [Edu-sig] raging debates and the relevance of a real education To: kirby

[Edu-sig] another test....

2016-03-01 Thread kirby urner
with one or two others and offer to serve in that role. I haven't done that yet though. Still collecting data on the current (broken) situation. Kirby -- Forwarded message ------ From: kirby urner Date: Tue, Mar 1, 2016 at 6:57 PM Subject: Re: [Edu-sig] raging debates and the

Re: [Edu-sig] raging debates and the relevance of a real education

2016-03-01 Thread kirby urner
>>> "Compete in the free market, but through coercive court orders.".replace("but", "not") 'Compete in the free market, not through coercive court orders.' :-D Kirby ___ Edu-sig mailing list Edu-sig@python.org https://mail.python.org/mailman/listinfo/ed

[Edu-sig] raging debates and the relevance of a real education

2016-03-01 Thread kirby urner
Students lucky enough to get exposure to RSA (the algorithm) along their math track are likely having more informed debates in their classrooms, regarding the Apple vs. FBI standoff. They're certainly better equipped, concept-wise, than less privileged kids who might not even get any SQL in all fo

[Edu-sig] 1-2-3 testing (forwarded announcement)

2016-02-26 Thread kirby urner
From: Ted Boulou Date: Fri, Feb 26, 2016 at 4:55 AM Subject: How we are using a Python-powered wooden-made Pi-based device to help micro-entrepreneurs in Senegal To: python-annou...@python.org Hello sir,madam, I am Ted, CEO of a start-up based in Senegal that has built the Somtou. The Somtou i

[Edu-sig] frustrations attempting to join edu-sig?

2016-02-25 Thread kirby urner
Do we have a listowner here? On the behest of this would-be poster I'm sharing about his attempt to join our discussions. Kirby FYI. -- Forwarded message -- From: Aivar Annamaa Date: Thu, Feb 25, 2016 at 7:51 AM Subject: Writing to Python Edu-Sig mailing list To: kirby.ur...@gm

Re: [Edu-sig] what is a "variable" in Python?

2016-02-18 Thread kirby urner
On Thu, Feb 18, 2016 at 11:17 AM, Al Sweigart wrote: > Reference issue aside, I think the container works as a mental model. The > problem with the tag/label model is that if you think of the variable > `spam` as being attached to the value 42 and `eggs` as being attached also > to 42, it bring

Re: [Edu-sig] what is a "variable" in Python?

2016-02-16 Thread kirby urner
I'm noticing that postings with edu-sig as one among several take longer to show up in the archives. I'm going to not reply-all in future and just use edu-sig for its mail reflector powers. That should make the moderator's job a little easier. Kirby On Tue, Feb 16, 2016 at

Re: [Edu-sig] what is a "variable" in Python?

2016-02-15 Thread kirby urner
ract. They are anchored in ordinary language and everyday experience. OK, I think that's enough reiteration to keep it clear. Objects do all the work. Names are a means to that end, in providing the corresponding dot notation syntax. Kirby > > Andy > > Dr. Andrew N. Harrington

Re: [Edu-sig] what is a "variable" in Python?

2016-02-15 Thread kirby urner
On Mon, Feb 15, 2016 at 5:23 PM, Carl Karsten wrote: > I think the point of this thread is: how important is this subject? > > I don't know that there's a scale of 1-10 answer. If / when it comes up, as a student question, it becomes important, but also instructors need to explain how a given ob

Re: [Edu-sig] what is a "variable" in Python?

2016-02-15 Thread kirby urner
taught for decades and apply to other languages that a student might know >> or will encounter in the future. Just my 2c. >> >> Gary Litvin >> www.skylit.com >> >> At 02:15 PM 2/15/2016, you wrote: >> >> The short answer is that I agree with you. >

Re: [Edu-sig] what is a "variable" in Python?

2016-02-15 Thread kirby urner
No need to say "sorry" as if an honest disagreement were a cause for regret. I enjoy diversity. What would life be without different perspectives? Plain vanilla. I'm familiar with the mental model of which you speak and was for years myself not a Python programmer, with miles of source code to

Re: [Edu-sig] what is a "variable" in Python?

2016-02-15 Thread kirby urner
Perfect! That's exactly the right rant! Thank you Naomi. Python names are post-its, not buckets. You effectively counter the "bucket brigade". Hah hah. Here's me chatting with Steve Holden a few minutes ago, across many time zones (dinner time there, just getting to be lunch time here). ===

[Edu-sig] what is a "variable" in Python?

2016-02-15 Thread kirby urner
What do educators think about this discussion of variables in Python? http://www.python-course.eu/variables.php I find the "variable versus identifier" discussion, with repeated references to C / C++, to be somewhat on the confusing side. My view is "variable as container" makes sense if you're

[Edu-sig] another example: modeling risk / learning to code

2016-02-11 Thread kirby urner
# -*- coding: utf-8 -*- """ Created on Thu Feb 11 09:08:42 2016 @author: Kirby Urner A Game of Life (c) MIT License, 2016 Die: 2 or more sides Cup: 1 or more dice Exceptions subclasses Run a gauntlet of possible exceptions, with Game for scope """ from ra

[Edu-sig] a local peak (as in mountain top)

2016-02-11 Thread kirby urner
to them all at once. The special names are like Kanji (Chinese characters). Add a few, get to know them, add a few more, and so on. Kirby # -*- coding: utf-8 -*- """ Created on Thu Feb 11 10:16:34 2016 @author: Kirby Urner """ from collections import namedtuple

[Edu-sig] from tonight's subject matter: algebra_city.py

2016-02-11 Thread kirby urner
# -*- coding: utf-8 -*- """ Created on Thu Feb 11 12:07:59 2016 @author: Kirby Urner In algebra, we have the idea that functions might compose. We have this idea in POSIX too, i.e. the pipeline operator: $ ls *.py | wc -l The ls 'function' sends its output to wordcou

Re: [Edu-sig] what is ~fluent Python?

2016-02-02 Thread kirby urner
On Tue, Feb 2, 2016 at 3:42 PM, Mark Engelberg wrote: < ... > > So, I encourage you to rethink your belt system in terms of concepts, in > terms of thinking and problem solving, in terms of fluency as it is defined > in foreign languages. See > http://www.ccs.neu.edu/home/matthias/Thoughts/Gro

Re: [Edu-sig] what is ~fluent Python?

2016-02-02 Thread kirby urner
On Tue, Feb 2, 2016 at 10:45 AM, Juliano wrote: > Sorry Mr. Kirby, I really did not notice the tilde. > Shame on me. > > Shame on me then for being too obscure. :-D BTW, I demonstrate overloading tilde ~ using __invert__ in px_class.py in the Accelerated folder in here: http://bit.ly/1TrSJFB

Re: [Edu-sig] what is ~fluent Python?

2016-02-02 Thread kirby urner
On Tue, Feb 2, 2016 at 6:24 AM, Juliano wrote: > Hello, everybody! > > Taking advantage of the semantic redundancy =) > > It is common for Python programmers try to adapt Python to patterns > learned in other languages. This can prevent them from learning powerful > features available in the Pyth

[Edu-sig] what is ~fluent Python?

2016-02-02 Thread kirby urner
Nobody wants to admit to not having some command of a language, just people need to use languages to different levels, human as well as computer (language). In saying "workaday" or "everyday" Python I suppose I'm circling the word "mundane"? We remember that Scheme (PLT version in particular) cam

Re: [Edu-sig] a common misconception

2016-01-23 Thread kirby urner
On Sat, Jan 23, 2016 at 11:58 AM, John Zelle wrote: > Kirby, > > This is an interesting and subtle point. I understand the distinction > that you are making, but syntactically and pragmatically, the call to a > class constructor IS a function call in Python (unlike languages such as > Java where

[Edu-sig] a common misconception

2016-01-23 Thread kirby urner
A common misconception in communicating Python is that range() and even list() are "function calls". That's correct for range() in 2.x: >>> type(range) but has never been correct terminology regarding list(). Example: """ >From Chapter 9 of Inventing in Python: The range() and list() Functio

[Edu-sig] greetings from ; looking forward to pep 0498

2016-01-12 Thread kirby urner
I've started to pick up some new Python students (adult age) through PDX Code Guild (). http://worldgame.blogspot.com/2016/01/bootcamp.html I was there last night watching their lead instructor coax them into gamely tackling the game of Zombie Dice, which has some pretty simple rules, not unlike

Re: [Edu-sig] MicroPython and BBC micro:bit things

2016-01-10 Thread kirby urner
On Sat, Jan 9, 2016 at 5:21 PM, Nicholas H.Tollervey wrote: > Hi Folks, > > Happy new year everyone! > > Apologies for cross-posting. Here's hoping it's worth it. > > Totally worth it. Thank you. I'm learning a lot. Here in the US, we have nothing quite like the BBC. Thanks for the comic wit

Re: [Edu-sig] continuing with coroutines

2016-01-06 Thread kirby urner
On Wed, Jan 6, 2016 at 3:02 PM, kirby urner wrote: > # -*- coding: utf-8 -*- > """ > Created on Sun Jan 6 14:17:00 2016 > > Jan 6 was not a Sunday -- my bad. Continuing on the topic of concurrency, a switched to math

Re: [Edu-sig] continuing with coroutines

2016-01-06 Thread kirby urner
# -*- coding: utf-8 -*- """ Created on Sun Jan 6 14:17:00 2016 @author: kurner Demonstrates a driver-along-road pattern where the Driver(road) instance runs to completion when the target of 'yield from'. This is not about interweaving event processing asynchonously. It's about 'yield from' and

[Edu-sig] continuing with coroutines

2016-01-04 Thread kirby urner
This code is practical mainly in the trivial sense that it runs to completion. # -*- coding: utf-8 -*- """ Created on Sun Jan 3 13:51:20 2016 @author: kurner """ import itertools def assemble(): drv = yield None drv.result = 1 drv = yield drv drv.result += 1 drv.name = "Alvi

Re: [Edu-sig] pep380: yield from

2016-01-04 Thread kirby urner
Erratum: 'Luciano packs his 'For Further Reading' with links directly TO Google groups' ETC. FoxPro refugees (Microsoft has stopped supporting that language) will remember READ EVENTS as a last call to get a GUI going, akin to Tk's mainloop(). Quoting from Fluent Python: Dino Viehland showed how

[Edu-sig] pep380: yield from

2016-01-04 Thread kirby urner
I working through Luciano's Fluent Python, which I really appreciate reading in Safari On-Line as so many of the links are live and relevant. Luciano packs his 'For Further Reading' with links directly in Google groups, where we can see Guido studying Twisted so to better communicate his alternativ

[Edu-sig] genetic_code.py (another rich data structure)

2015-12-17 Thread kirby urner
# -*- coding: utf-8 -*- """ Created on Wed Dec 16 10:07:57 2015 @author: kurner, 4dsolutions (.net) (copyleft MIT license, 2015) Example: Rich Data Structures (for learning Python, including sqlite3) Source: http://www.soc-bdr.org/rds/authors/unit_tables_conversions_and_genetic_dictionaries/e5

Re: [Edu-sig] Python Education Summit 2016

2015-12-10 Thread kirby urner
On Thu, Dec 10, 2015 at 9:49 AM, Chalmer Lowe wrote: > Team: > > The Python Education Summit is on again this year at the PyCon in Portland. > > Greetings Chalmer, please send me an invitation if you would. I missed the two Montreal Pycons however I'm a resident of Portland and already registere

[Edu-sig] more from my classroom

2015-12-10 Thread kirby urner
ot;"" Created on Tue Dec 8 17:39:27 2015 @author: Kirby Urner, 4Dsolutions.net (copyleft) MIT License, 2015 Two models of iterator that do the same thing. All primes found so far will be a list of all primes <= n without any missing. Algorithm: trial by division. """

[Edu-sig] generating phi as continued fraction (inefficient version)

2015-12-04 Thread kirby urner
Inefficient, but still kinda fun. I used it last night as an introduction to eval( ). First I take the eval away and show the expression (growing) being generated (it's a generator). 1 + 1/(1) 1 + 1/(1+ 1/(1)) 1 + 1/(1+ 1/(1+ 1/(1))) 1 + 1/(1+ 1/(1+ 1/(1+ 1/(1 1 + 1/(1+ 1/(1+ 1/(1+ 1/(1+ 1/(

[Edu-sig] introducing euler's number

2015-12-03 Thread kirby urner
Again from tonight's class prep. Such scripts might be useful exhibits if you're still trying to get approval to move beyond a TI calculator in math class. Playing with extended precision helps bring the concepts of limits and convergence alive. My students are employed adults so winning such ap

[Edu-sig] time passing: ramanujan and pi

2015-12-03 Thread kirby urner
Looking back: https://mail.python.org/pipermail/edu-sig/2006-September/006963.html shows me still importing __division__ and relying on some factorial off state. Tonight, preparing for class, I'm able to rely on math.factorial, introduce other improvements. # -*- coding: utf-8 -*- """ Created o

[Edu-sig] relevant blog posting re pre-college CS topics & Python

2015-12-03 Thread kirby urner
http://controlroom.blogspot.com/2015/12/mathy-memes.html Kirby ___ Edu-sig mailing list Edu-sig@python.org https://mail.python.org/mailman/listinfo/edu-sig

[Edu-sig] Google teaches Python 2.x, not 3.x?

2015-11-28 Thread kirby urner
https://developers.google.com/edu/python/set-up I'd hope for something more up to date. I was following Python links from here: https://github.com/WomenWhoCode/guidelines-resources/blob/master/learn_to_program.md Kirby ___ Edu-sig mailing list Edu-sig

Re: [Edu-sig] Permutations with Python

2015-11-23 Thread kirby urner
> > import unittest > from px_class import P > > class Test_Permutation(unittest.TestCase): > > def test_1(self): > """ > any p * ~p should give Identity > """ > p = P() # identity permutation > new_p = p.shuffle() > inv_p = ~new_p > self.

<    1   2   3   4   5   6   7   8   9   10   >