Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Boosting Logical Skills | True or False?
Data Types in Python

book
Challenge: Boosting Logical Skills

Aufgabe

Swipe to start coding

Do as many assignments as possible to come out on top!

Here, you should replace ___ with one of the statements: or , and to make:

  1. The statement1 variable is equal to False.
  2. The statement2 variable is equal to True.

Lösung

# This statement equals `False`
statement1 = True and False
# This statement equals `True`
statement2 = False or True

# Print the `False` statement
print(statement1)
# Print the `True` statement
print(statement2)

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 4
# This statement equals `False`
statement1 = True ___ False
# This statement equals `True`
statement2 = False ___ True

# Print the `False` statement
print(statement1)
# Print the `True` statement
print(statement2)
toggle bottom row
some-alt