I've been tasked with writing a very simple script but I can't for the life of me figure out how to...
All I need to do is use the module Shutil to copy all files that contains "Tax_" from ~/Documents folder to my current working directory.
import shutil
import os
src = os.path.expanduser('~/Documents/Tax 2018')
dst = os.getcwd()
for files in src:
if 'bdd' in files: # also tried: if files.startswith("Tax_")
shutil.copy(files,dst)
Does not work. We were also given the option of finding files with Shutil.which("Tax_")
but that simply doesn't work.