Kursinnhold
Data Types in Python
Data Types in Python
4. Bring All the Topics Together
Challenge: Boosting Logical Skills
Oppgave
Swipe to start coding
As an accountant, you often deal with multiple checks. Your task is to pick the correct logical operator (and
or or
) to reflect the situation properly.
Replace ___
with either and or or so that:
- The variable
report_needs_revision
equalsFalse
, meaning everything is fine if both conditions pass. - The variable
report_is_acceptable
equalsTrue
, meaning it passes even if at least one condition is met.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 4
Challenge: Boosting Logical Skills
Oppgave
Swipe to start coding
As an accountant, you often deal with multiple checks. Your task is to pick the correct logical operator (and
or or
) to reflect the situation properly.
Replace ___
with either and or or so that:
- The variable
report_needs_revision
equalsFalse
, meaning everything is fine if both conditions pass. - The variable
report_is_acceptable
equalsTrue
, meaning it passes even if at least one condition is met.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 4