Puzzle 27: Explanation
Let’s find out how augmented arithmetic assignments work in Python.
We'll cover the following...
Try it yourself
Try executing the code below to verify the results:
Press + to interact
def add_n(items, n):items += range(n)items = [1]add_n(items, 3)print(items)
In ...
Access this course and 1400+ top-rated courses and projects.