num = 9 result = num * 2 if num >= 5 else num + 2 print(result) >>> 18
자바에서 보던 3항 연산자가 파이썬에도 있었나...
단순하고 재밋네.