Search for tag: "floats"

Lesson 23.1 The Principle of Abstraction

In this video we introduce the principle of abstraction, which is simply hiding unnecessary details about a class from the user of a class. However, there are many different ways to do that, which is…

From  Hannah Lee on November 8th, 2020 40 plays

Lesson 1.7 Mixed Expressions

For the most part, operations are used to combine two expressions of the same type. Adding together two ints is different from adding together two strings. In this video we see what happens when we…

From  Hannah Lee on September 4th, 2020 16 plays

Lesson 1.4 Boolean Expressions

The third basic type is the bool type. It only has two values: True and False. However, as we shall soon see, this type is one of the most important for computer programming.

From  Hannah Lee on September 4th, 2020 18 plays

Lesson 1.3. Float Expressions

Integers are not the only number type in Python. There is also the float type, which is the set of real numbers. Floats can do just about everything that integers So why then does Python need a…

From  Hannah Lee on September 4th, 2020 23 plays

Lesson 1.2 Int Expressions

The 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 on September 4th, 2020 23 plays