var01.py
a = 1
b = 2.0
c = '3'
e = True
f = False
print(a+int(c))
print(str(a)+c)
print(not e)
print(e and f)
print(e or f)
결과
4
13
False
False
True
'파이썬' 카테고리의 다른 글
[파이썬] 함수(def) (0) | 2023.02.20 |
---|---|
[파이썬] test (0) | 2023.02.20 |
[파이썬] for,input,random (0) | 2023.02.20 |
[파이썬] if (0) | 2023.02.20 |
[파이썬] array 배열 (0) | 2023.02.20 |