Python has many ways of formatting strings. See https://realpython.com/python-f-strings/.
Recently, I have started using the way which is most familiar to the bash syntax – It is both compact and readable:
variable = 'h'
value = 0.18
print(f'Varibable {variable} has a value of {value}')
