Instead of writing the calculation repeatedly, we can create a function: def total_marks (eng, maths, science, telugu, social): return eng + maths + science + telugu + social print (total_marks (85, ...