Python Q’s – by Lindsey Martin


  • DailyPy 66

    Today’s DailyPy is a submission from Sander Land. Thanks, Sander!

    Sander points out that some things in Python don’t always behave as we might expect. Knowing about these can help us debug unexpected behavior!

    Hints:
    1. Python variables are references.
    2. inplace vs. standard assignment:
    x += y can work differently from x = x + y

    Answer

    Leave a Reply