파이썬if문

    파이썬 흐름제어 (1) - if 문

    if 구문 - 출력하기 #파이썬 제어문 # IF 실습 #기본 형식 print(type(True)) # 0이 아닌 수, "abc" , [1,2,3,...] , (1,2,3,...) ... print(type(False)) # 0, "" , [] ,() , {} ... # 예1 if True: print('Good') # 파이썬은 들여쓰기 (indent) 안하면 에러 if False: print('Bad') # 예2 if False: print('Bad!!!') else: print('Good!!!') # 관계 sep연산자 # > , >=, c) # a > b > c print('or:', a > b or b > c) print('not:', not a > b) ..