نوشتن دستورات if در یک خط با عملگر سه تایی پایتون (عملگر شرطی) https://fa.from-locals.com/python-if-conditional-expressions/