Python Tutorial: Integer Type In Python

preview_player
Показать описание
Be sure to like, share and comment to show your support for our tutorials.

=======================================
======================================
In this Python tutorial, we teach you about the integer type in Python.

Integer Type In Python
In this Python tutorial, we will be looking at the integer type in Python. This is just an overview of the integer type. We will be diving into numbers, operators and much more soon enough.+

Integers are referred to as a built-in type in Python. Python integers have an unlimited precision to a point. The unlimited precision can be misunderstood, the precision is up to the memory available for the integer. It is pretty precise, for most applications.

What is an Integer?
An integer is a whole number that can be positive or negative. A whole number is a number that does not contain a decimal. For example, 5 is an integer and 5.0 is not.

Coding Exercise
Fire up your Python interpreter and give the built-in function type() a go. This function returns the type information that is stored in an object.
Рекомендации по теме
Комментарии
Автор

Strictly I think the integer function "int" doesn't round down but it takes the integer part of the number. Doesn't it? In the end of the day the result is the same... just wondering what exactly the function does.
Btw, thanks for sharing your knowledge.

RobEinstein