How to concatenate a fixed string and a variable in Python
How to concatenate a fixed string and a variable in Python Question: I want to include a file name, ‘main.txt’, in the subject. For that I am passing a file name from the command line. But I get an error in doing so: python sample.py main.txt # Running ‘python’ with an argument msg[‘Subject’] = "Auto …