Search for tag: "integers"
Lesson 17.8 Recursion PerformanceIn this video, we show another reason to pay attention to the division step: performance. In fact, we show an example where a change in how we divide the data can improve performance by several…
From Hannah Lee
91 plays
|
|
Lesson 16.2 For-Loop DesignIn this video we show how to use for-loops in function definitions. In particular, we show that we go from a specification to code that uses a for-loop.
From Hannah Lee
98 plays
|
|
Lesson 11.6 Attribute InvariantsWhen you work on Assignment 3, you will discover that the color objects have some significant restrictions on how they can be used. These restrictions are called attribute invariants, and they are…
From Hannah Lee
119 plays
|
|
Lesson 1.2 Int ExpressionsThe most familiar type in Python is int, the set of integers. It supports all of the basic mathematical expressions that you expect, like addition, subtraction, multiplication, and division. However,…
From Hannah Lee
199 plays
|
|