인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

jaeho.park2's profile image
jaeho.park2

asked

Getting Started with Programming: Introduction to Python (Inflearn Original)

if statement (1-1): Conditional statements are very important

If Ture에서 조건은?

Written on

·

205

2

안녕하세요,
if True :
print('Good')
에서, Ture를 판단하는게 무엇인가요? 조건이 어떤건지 모르겠습니다. 참인지 거짓인지 판단하려면 대상(object)이 있어야 하지 않나요??
python

Answer 2

1

https://velog.io/@pushpull7381/Chapter-07.-True-False-%EA%B7%B8%EB%A6%AC%EA%B3%A0-if%EC%99%80-%EA%B7%B8-%ED%98%95%EC%A0%9C%EB%93%A4

0

niceman님의 프로필 이미지
niceman
Instructor

안녕하세요.

열심히 하시네요

if True:

말 그대로 True 구문에서 참이므로, if 하위에 코드 블럭이 실행되는거예요~

if False:

    print('test')

등으로 실행해 보시면 아래 print 문은 실행이 안되겠죠?

jaeho.park2's profile image
jaeho.park2

asked

Ask a question