Python 3
Given that a variable namedpathNamecontains a string describing a directory path, write a single Python statement that will store the names of all files and subdirectories in that path in aListstructure namedcontents.DO NOTtraverse the path/directory. You are only interested in the immediate path and its contents. You may assume that any necessary import statements already exist.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here