Here is my code:
for root, dirs, files in os.walk(variable_path): print(dirs[0])
By checking the type we already the dirs is a list, and