python-CSD-kursu/python-temel/kosul.operatoru.py

5 lines
123 B
Python
Raw Normal View History

2023-05-21 17:25:43 +03:00
n = int(input('Bir değer giriniz:'))
result = 100 if n % 2 == 0 else 200 # result = n % 2 == 0 ? 100 : 200
print(result)