Pinboard bookmarks for February 26th

Pinboard links for February 26th, syndicated automagically:

  • Online Python Tutor – This application supports the core Python 2.5 language, with no module imports or file I/O. It's meant to be used as a platform for creating programming tutorials, not for running or debugging production code.
  • Software Carpentry » Classes and Objects – Classes and Objects
    Object-oriented programming in Python.
    Requires: Python
    Introduces: Python objects and classes

    Motivating questions:

    I have a complex program which has lots of duplicated code, is there any way to simplify it?
    How do I change the behavior of one part of my program without affecting the rest of it?

  • Basic Python Exercises – Google’s Python Class – Google Code – There are 3 exercises that go with the first sections of Google's Python class. They are located in the "basic" directory within the google-python-exercises directory. Download the google-python-exercises.zip if you have not already (see the Set-Up page for details).
    string1.py — complete the string functions in string1.py, based on the material in the Python Strings section (additional exercises available in string2.py)
    list1.py — complete the list functions in list1.py, based on the material in the Python Lists and Python Sorting sections (additional exercises available in list2.py)
    wordcount.py — this larger, summary exercise in wordcount.py combines all the basic Python material in the above sections plus Python Dicts and Files (a second exercise is available in mimic.py)
    With all the exercises, you can take a look at our solution code inside the solution subdirectory.
  • Python Introduction – Google’s Python Class – Google Code – Python is a dynamic, interpreted language. Source code does not declare the types of variables or parameters or methods. This makes the code short and flexible, and you lose the compile-time type checking in the source code. Python tracks the types of all values at runtime and flags code that does not make sense as it runs. (todo: link here to the companion video segment for this section)

Comments are closed.