How to concatenate a fixed string and a variable in Python
variable = 'Hello' print('This is the Test File ' + variable) variable = '10' print('This is the Test File ' + str(variable))
Output
This is the Test File Hello This is the Test File 10
variable = 'Hello' print('This is the Test File ' + variable) variable = '10' print('This is the Test File ' + str(variable))
This is the Test File Hello This is the Test File 10