path = r'C:\Program Files\1\1.exe'
I can run a program using the path above. I don't want to hardcode it, so I'm trying to use a variable in place of the 1
s. This is what I came up with:
variable1 = '1'
path = r'C:\Program Files\ , +variable1 , +\, +variable1, +.exe'
This doesn't work. How do I make it work?