<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><br><a href="https://youtu.be/5aP9Bl9hcqI">https://youtu.be/5aP9Bl9hcqI</a><br><br></div>I think this lecture by David J. Malan of Harvard, introducing Python in Week 8, having slogged through C already, is top notch.<br><br></div>He's using Python 3 and really covering a ton of material, with lots of references back to the C lectures. This is the only lecture of the series I've seen at this point.<br><br></div>He somewhat reveals has Perl background (a lineage he confesses to) in treating a module so much like a class, to where he starts calling functions methods just because their imported and belong to some module.  In Perl, entire modules got blessed as classes as I recall.<br><br></div>On the topic of 'if __name__ == "__main__"', he's quite good on that but seems to tie it to calling a function called main() every time.  I prefer to explain that module may in principal be the one running top-level, with everything else imported.  When imported, a module is never "__main__" by default, so here's a way to provide a "just in case" section, containing whatever.<br><br></div>He's good on Python being a both a language and a machine to combines compiling and running into a single step, with bytecode the intermediate runtime language. He didn't stop to talk about the different versions of Python in the sense of CPython, Jython, Iron Python and PyPy. I thought he would. Maybe in Week 9.<br><br></div><div>Within one two hour episode he's taken us all the way from simple assignment and string formatting, to writing a simple Flask application complete with Jinja2.  As someone who has lectured on Python quite a bit, I have to admire the guy's stamina and sustained coherence.<br></div><div><br></div>Kirby<br><br></div>PS:  along those lines, I've been pumping out a bunch of Youtubes recently, two of which feature <a href="http://repl.it">repl.it</a> using Python.  My scripts are somewhat trivial this time, whereas in past Youtubes I've been showing off fancy VPython:<br><br><a href="https://www.youtube.com/playlist?list=PLeBIlkJm4xglicSifacG4eewD9CQaWvU0">https://www.youtube.com/playlist?list=PLeBIlkJm4xglicSifacG4eewD9CQaWvU0</a><br></div><br>It'll suggest you log in / create account but you don't have to.  Cool service though, you might wanna:<br><br>S Factor  -- introduces <a href="http://REPL.IT">REPL.IT</a>  <br><a href="https://repl.it/Glmi/6">https://repl.it/Glmi/6</a><br><br>RD to RT -- extended precision Decimal<br><a href="https://repl.it/Gqyp/0">https://repl.it/Gqyp/0</a><br><br></div>Fancier Python at work:<br></div>More About Hypertoons (VPython)<br><br></div>(all of these a part of the above Youtube playlist: Synergetics 101)<br><br><div><div><div><br><div><div><div><div><div><div><div><div><br></div></div></div></div></div></div></div></div></div></div></div></div>