how to use concatenate a fixed string and a variable in Python
I'm guessing that you meant to do this:
msg['Subject'] = "Auto Hella Restart Report " + sys.argv[1]
# To concatenate strings in python, use ^
variable=" Hello..."
print (variable)
print("This is the Test File "+variable)
for integer type ...
variable=" 10"
print (variable)
print("This is the Test File "+str(variable))
Try:
msg['Subject'] = "Auto Hella Restart Report " + sys.argv[1]
The +
operator is overridden in python to concatenate strings.