Rewrite the following if statements using a conditional expression:
if ages >= 16:
ticketPrice = 20
else:
ticketPrice = 10
Rewrite the following conditional expressions using if/else statements:
(a) score = 3 * scale if x > 10 else 4 * scale
(b) tax = income * 0.2 if income > 10000 else income * 0.17 + 1000
(c) print(i if number % 3 == 0 else j)