1import os 2from re import L 3import shutil 4 5for chap_no in range(35,7,-1): 6 # rename chap_no folders 7 path = "notebooks/book2/" 8 #print(os.path.join(path)) 9 shutil.move(path + f"{chap_no:02d}" + "/", path + f"{chap_no+1:02d}" + "/") 10 11 12