Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre What is a Boolean Data Type? | Boolean Type
Python Data Types

Glissez pour afficher le menu

book
What is a Boolean Data Type?

It's time to move to the Boolean data type. Variables that are Boolean data types can take the following values: either False or True.

Keywords False and True are capitalized, if we write lowercase we will get an error.

python
python
python

In Python, data types such as Boolean and integer are very interrelated, namely the default Boolean value False is represented by an integer 0, and Boolean value True is represented by an integer 1.

Tâche

Swipe to start coding

You have to fill in the blanks so that all expressions will be True.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 1

Demandez à l'IA

expand
ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

book
What is a Boolean Data Type?

It's time to move to the Boolean data type. Variables that are Boolean data types can take the following values: either False or True.

Keywords False and True are capitalized, if we write lowercase we will get an error.

python
python
python

In Python, data types such as Boolean and integer are very interrelated, namely the default Boolean value False is represented by an integer 0, and Boolean value True is represented by an integer 1.

Tâche

Swipe to start coding

You have to fill in the blanks so that all expressions will be True.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 1
Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Nous sommes désolés de vous informer que quelque chose s'est mal passé. Qu'est-il arrivé ?
some-alt