
# Ternary Operator
age = 22
if age >= 18:
    print("Eligible")
else:
    print("Not eligible")

age = 12
if age >= 18:
    message="Eligible"
else:
    message="Not eligible"
print(message)

message="Valid" if age>=18 else "Invalid"
print(message)