프로그래밍/Python & dJango
[Python] 삼항 연산자
bbuljj
2016. 9. 26. 12:44
1. 파이썬 삼항 연산자
> True if 조건 else False
ex)
ox = 'O' if N ==3 else 'X'