Boolean Type
Veeg om het menu te tonen
Boolean Type: bool.
How to set a boolean variable
12345a = True b = False print(a) print(b)
Boolean operator examples
| Operator | Returns |
|---|---|
>= | True if a number is greater than or equal to another |
<= | True if a number is less than or equal to another |
== | True if two values are equivalent |
!= | True if two values are not equivalent |
&& | True if both values are True |
! | True if the value is False |
1print(4 == 6)
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 3. Hoofdstuk 1
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Sectie 3. Hoofdstuk 1