I'm trying to create python script that will make folder with variable name and .csv file inside that folder with variable name included.
import pathlib
import csv
name = input()
pathlib.Path(name).mkdir(parents=True, exist_ok=True)
csvfile = open(name/name+"1day.csv", 'w', newline='')
os.path.join()module to concatenate path instead of doing it they way you are doing.import osandopen(os.path.join(name, name + "1day.csv"), "w", newline="")