Search for tag: "floats"
Lesson 23.1 The Principle of AbstractionIn 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
89 plays
|
|
Lesson 1.7 Mixed ExpressionsFor 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
178 plays
|
|
Lesson 1.4 Boolean ExpressionsThe 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
200 plays
|
|
Lesson 1.3. Float ExpressionsIntegers 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
174 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
198 plays
|