i=0
while i<3:
print(f'{i}<3 : {i<3}')
i+=1
print(f'{i}>3 : {i>3}')
print(f'{i}!=3 : {i!=3}')
print(f'{i}==3 : {i==3}')
print(f'{i}==5 : {i==5}')
print(f'{i}!=5 : {i!=5}')
값 | 자료형 | True,False |
---|---|---|
"" | 빈 문자열 | False |
" " | 공백만 있는 문자열 | False |
"abc" | 값이 있는 문자열 | True |
[] | 빈 리스트 | False |
[1,2] | 값이 있는 리스트 | True |
1 | 숫자 1 | True |
0 | 숫자 0 | False |
-1 | 숫자 -1 | True |
{} | 비어있는 딕셔너리 | False |
() | 비어있는 튜플 | False |