How about: a = 3 b = 0 def div(a, b): return (a / b) print(f'Sum of {a} and {b} is {sum(a, b)}')