Hey guys...
I was recently working on a program, which opens a music file using Windows Media Player...so I tried:
subprocess.call("C:\Program Files\Windows Media Player\mplayer2.exe",loc)
# Where 'loc' is the location of the file
But then I got to know that it won't work and that I have to use:
subprocess.call(["C:\Program Files\Windows Media Player\mplayer2.exe",loc])
# Where 'loc' is the location of the file
But my question is, why the square brackets?
Thanks guys! :)