Python, Python Programming, Web Development, Software Development, Programming.
working directory or the path to the directory passed as the argument. import os # the getcwd() is used to get the current working directory current_dir = os.getcwd() # the listdir() is used to get the current working directory directories = os.listdir(current_dir) print(f'Found {len(directories)}