Python 3 Given that a variable named pathName contains 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 a...


Python 3


Given that a variable namedpathName
contains 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 aList
structure 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.



Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here