I want to use Python to run the cp command on Linux, thus copying a file. I have this code:
newfile = "namePart1" + dictionary[key] + "namePart2"
os.system("cp cfn5e10_1.lp newfile")
How can I make it so that the text newfile on the second line is replaced with the newfile variable that I calculated on the previous line?