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

Contenuti del Corso

Python Data Types

Python Data Types

1. Numeric Types
2. Boolean Type
3. Strings

book
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.

python

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.

python

It's time to practice!

Compito

Swipe to start coding

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

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 2
toggle bottom row

book
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.

python

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.

python

It's time to practice!

Compito

Swipe to start coding

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

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 2
Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Siamo spiacenti che qualcosa sia andato storto. Cosa è successo?
some-alt