I am trying to create a function that would create a folder based on the values passed as arguments. The function has 2 arguments (one argument that stores the store name and the other argument that has a reference date). Given below is the function.
def sales_fn(name,date):
path = "/Users/user/'%s'/{}"%(name).format(date)
I keep getting an error
FileNotFoundError: [Errno 2] No such file or directory: "/Users/user/'store_name'{}"
Could anyone guide me where am I going wrong. Thanks.
%string formatting with.format, try to search online for documentation and examples that use.formatyou'll find plenty! Side-note: a path shouldn't contain quotes