I have python 3.7.4 and it has f string support. But the server I am porting my data has python < 3.6 and so does not support f string. The following code works fine in local machine:
directory_root = 'dataset_test/'
root_dir = listdir(directory_root)
for animal_folder in root_dir:
animal_folder_list = listdir(f"{directory_root}/{animal_folder}")
But this code fails in server as it does not support f string. How could I rewrite it using format ?