booleans Flashcards

1
Q

boolean can only be

A

true or false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

how to check if 2 values are same

A

==

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

print boolean results

A
var result="app"="app"
print(result)
false
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

how to check if two values are not same

A

!=

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

check if apple and orange is not same

A
var result="Apples"!="Orange"
print(result)
false
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

check if one and ten are different

A
var result= 1 != 10
print(result)
true
How well did you know this?
1
Not at all
2
3
4
5
Perfectly