Search for tag: "floats"

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 5 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 9 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 11 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 8 plays