[Python] 삼항 연산자

2016. 9. 26. 12:44프로그래밍/Python & dJango

1. 파이썬 삼항 연산자

  > True if 조건 else False



ex) 

ox = 'O' if N ==3 else 'X'