#Number
print(1)
#string
print('Hello world')
#Boolean
print(True)
print(False)
#Expression
print(1+1)
print('Hello '+'world')
#Comparison operator
print(1==1)
print(1<2)
print(2<1)
#Membership operator
print('world' in 'Hello world')
import os.path
os.path.exists('booleadd.py')
'Python' 카테고리의 다른 글
- 문법, 데이터타입, 숫자 (0) | 2022.02.28 |
---|---|
#Conditional #if #elif (0) | 2022.02.28 |
#positional formating #Named placeholder (0) | 2022.02.27 |
#length #index #repeat (0) | 2022.02.27 |
#escape #newling #docstring (0) | 2022.02.27 |