def total_cost(tuition, fees, books, living, years):
return (tuition + fees + books + living) * years
home = total_cost(7000, 1500, 1200, 3000, 4)
away = total_cost(7000, 1500, 1200, 14000, 4)
print("Living at home: $" + format(home, ","))
print("Living away: $" + format(away, ","))
print("Difference: $" + format(away - home, ","))