if else 를 간단히 (tenary operator) 종래의 if else 문order_total = 247if order_total > 100: discount = 25else: discount = 0print(order_total, discount) 간단히discount = 25 if order_total > 100 else 0 print(order_total, discount) data science/python 2025.01.24