Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: The Not Statement | Mastering Boolean Logic in Python
Data Types in Python
course content

Contenu du cours

Data Types in Python

Data Types in Python

1. Getting Familiar With Numbers in Python
2. Mastering Boolean Logic in Python
3. Python String Manipulation
4. Bring All the Topics Together

book
Challenge: The Not Statement

Tâche

Swipe to start coding

Sometimes in accounting, we need to check if something is not true — for example, if a report was not approved or not rejected. Let's practice that!

Replace ___ with either True or False so that:

  1. The variable report_is_incorrect equals False – this means either the report was not rejected, or some other check passed.

  2. The variable report_is_ready equals True – this means the report was approved and not flagged as invalid.

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 5
toggle bottom row

book
Challenge: The Not Statement

Tâche

Swipe to start coding

Sometimes in accounting, we need to check if something is not true — for example, if a report was not approved or not rejected. Let's practice that!

Replace ___ with either True or False so that:

  1. The variable report_is_incorrect equals False – this means either the report was not rejected, or some other check passed.

  2. The variable report_is_ready equals True – this means the report was approved and not flagged as invalid.

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 5
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