So, basically I'm trying to put a variable in a directory string, so here's what I got
os.startfile(r'C:\Users\User\Downloads\Alfred\start\\'+sentence+".exe")
But when I'm trying to run the script (the other code doesn't have anything to do with this error), this comes up:
os.startfile(r'C:\Users\User\Downloads\Alfred\Open\\'+sentence+'.exe')
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\User\\Downloads\\Alfred\\Open\\\\badlion.exe'
It somehow counts "\\" as "\\\\", when I try to put "\" instead of "\\" it counts the variable (sentence), as a string??? Please help, I'm new to Python.