Mixed variable+string content in a Text component

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'
4 Likes