Hi I'm new to python programming.
I want to copy a file from source to destination. I'm using shutil.copy2(src,dst). But in src and dst path , I want to use variable.
For example (variable name): pkg_name = XYZ_1000 so src path will be : /home/data/$pkg_name/file.zip
In shell we can use $pkg_name to access variable, so is there any similar way in python?
Main concern is , if I want to use a variable(s) in copy command , how can I achieve that in python ? Thanks in advance.