1 2 3 4 5 6 7
age = 30 age_group = "Adult" if age > 18 else "Child" print(age_group) # output # Adult