Boolean
Boolean
๋ถ ๋ง๋ค๊ธฐ : ๋น๊ต ์ฐ์ฐ์
๋ถ ์ฐ์ฐํ๊ธฐ : ๋
ผ๋ฆฌ ์ฐ์ฐ์ (and ์ or )
and : a์ b True ์ผ ๋๋ง True ์ด๋ค
a
b
x
0
0
0
0
1
0
1
0
0
1
1
1
or : a์ b๊ฐ ํ๋๋ผ๋ True๋ผ๋ฉด True์ด๋ค
a
b
x
0
0
0
0
1
1
1
0
1
1
1
1
x in s, x not in s
in
not in
x in ๋ฆฌ์คํธ
x not in ๋ฆฌ์คํธ
x in ํํ
x not in ํํ
x in ๋ฌธ์์ด
x not in ๋ฌธ์์ด
in์ ๋ป์ธ "~์์"๋ผ๋ ๊ฒ ์ฒ๋ผ ์์ ์๋ ๋ฌธ์ฅ์ธ์ง ํ์ธํ ์ ์๋ค
Last updated
Was this helpful?