asked
Getting Started with Programming: Introduction to Python (Inflearn Original)
if statement (1-1): Conditional statements are very important
Written on
·
255
0
if True:
print(0)
하면 0 이 출력됩니다. 0은 False 여서 출력 되면 안되는 거 아닌가요? 왜 출력되는 거죠?
Answer 1
1
정수 형태로 출력이 됩니다.
print(False)로 출력해보세요.