Question: PYTHON! input: The letter R , followed by a space, followed (on the rest of the line) by the path to a directory. output:In this
PYTHON!
input: The letter R, followed by a space, followed (on the rest of the line) by the path to a directory.
output:In this case, all of the files in that directory will be under consideration, along with all of the files in its subdirectories, all of the files in their subdirectories, and so on. (You can think of the letter R here as standing for "recursive.") The paths to all of the files in the directory are printed. These are printed in lexicographical order of the file's names.
Example:
R C:\Test\Project1\Example C:\Test\Project1\Example\test1.txt C:\Test\Project1\Example\test2.txt C:\Test\Project1\Example\Sub\meee.txt C:\Test\Project1\Example\Sub\test1.txt C:\Test\Project1\Example\Sub\youu.txt C:\Test\Project1\Example\Zzz\zzz.py
These are printed in lexicographical order of the file's names.
'from pathlib import Path' is the only lib I can use
Python!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
