It should be much simpler than all of that:
$'the value ' + str(a) + ' belongs to variable a'
or even simpler (using Python 3’s f-strings):
$f'the value {str(a)} belongs to variable a'
It should be much simpler than all of that:
$'the value ' + str(a) + ' belongs to variable a'
or even simpler (using Python 3’s f-strings):
$f'the value {str(a)} belongs to variable a'