Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Integers | Numeric Types
Python Data Types
course content

Зміст курсу

Python Data Types

Python Data Types

1. Numeric Types
2. Boolean Type
3. Strings

Integers

So, integers are numbers that do not contain a fractional part. These numbers can be both positive and negative (for example 10, -7 both of these numbers are integers). Let's take a look at the example below.

Sometimes you have to check the type of some variables. In python, for it there is an useful function called type(). Let's look at an example of how this function works.

It's time to practice!

Завдання

Create three variables: a, b, c with the following values: 100, -5, -12350 and check the types of them.

Завдання

Create three variables: a, b, c with the following values: 100, -5, -12350 and check the types of them.

Все було зрозуміло?

Секція 1. Розділ 2
toggle bottom row

Integers

So, integers are numbers that do not contain a fractional part. These numbers can be both positive and negative (for example 10, -7 both of these numbers are integers). Let's take a look at the example below.

Sometimes you have to check the type of some variables. In python, for it there is an useful function called type(). Let's look at an example of how this function works.

It's time to practice!

Завдання

Create three variables: a, b, c with the following values: 100, -5, -12350 and check the types of them.

Завдання

Create three variables: a, b, c with the following values: 100, -5, -12350 and check the types of them.

Все було зрозуміло?

Секція 1. Розділ 2
toggle bottom row

Integers

So, integers are numbers that do not contain a fractional part. These numbers can be both positive and negative (for example 10, -7 both of these numbers are integers). Let's take a look at the example below.

Sometimes you have to check the type of some variables. In python, for it there is an useful function called type(). Let's look at an example of how this function works.

It's time to practice!

Завдання

Create three variables: a, b, c with the following values: 100, -5, -12350 and check the types of them.

Завдання

Create three variables: a, b, c with the following values: 100, -5, -12350 and check the types of them.

Все було зрозуміло?

So, integers are numbers that do not contain a fractional part. These numbers can be both positive and negative (for example 10, -7 both of these numbers are integers). Let's take a look at the example below.

Sometimes you have to check the type of some variables. In python, for it there is an useful function called type(). Let's look at an example of how this function works.

It's time to practice!

Завдання

Create three variables: a, b, c with the following values: 100, -5, -12350 and check the types of them.

Секція 1. Розділ 2
Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
We're sorry to hear that something went wrong. What happened?
some-alt