© 2019 BrainStemSchool.com

December 13, 2016

December 9, 2016

December 7, 2016

Please reload

Type

December 2, 2016

 

https://youtu.be/s6vnu0SaFj4

 

Type is an interesting concept.

 

In normal life, we don't usually distinguish between numbers for counting (1, 2, 3, 4 ...) and numbers for keeping track of decimal values (3.14159, 1.50, etc).

 

In computers, however, these are very different animals.

 

To further complicate the issue, "456" is not the same as 456. That's because of type.

 

Type is the concept that different values are not entirely compatible and thus serve different purposes to the computer.

 

The basic types we'll be working with are:

 

int - integers

float - decimal values

str - strings of text

bool - boolean values of True and False

 

Next Post: Literals and Variables

 

Share on Facebook
Share on Twitter
Please reload

Please reload

Recent Posts
Tags