I'm writing a program that asks the user to input the name of a new folder. then it creates the path and moves to it to save some data.
I have the code to ask and create the path, but can't get it quite right to move to the new relative location.
new_dir = input('Enter the directory where you want to save your data :').lower()
if not os.path.exists(new_dir):
os.makedirs(new_dir)
it creates the path, but I'm still saving dataset to the cwd