<prompt> Kuandika Python script kuonyesha mti muundo wa folda katika console.  <response>: Sure, heres a basic example using the os and sys modules in Python:import osimport sysdef print_treefolder_path, indent: Prints the folder structure of a given folder path Get the folder name folder_name os.path.basenamefolder_path Print the folder name with indentation printindent folder_name Check if the path is a directory if os.path.isdirfolder_path: Get the list of files and folders in the given directory files os.listdirfolder_path Print each file or folder for file in files: Get the full path of the filefolder path os.path.joinfolder_path, file Recursively call this function if the path is a directory if os.path.isdirpath: print_treepath, indent else: printindent file Run the function with a folder pathif __name__ __main__: folder_path sys.argv1 Get the folder path from command line arguments print_treefolder_pathYou can run this script from the command line with a folder path as an argument, like this:python folder_tree.py pathtofolderThis will print the tree structure of the specified folder to the console. 