Question: Exercise 4: Write a stand-alone python script, based on Lab.6a Ex. 1 https://www.chegg.com/homework-help/questions-and-answers/1-write-function-takes-input-directory-function-search-directory-full-subdirectory-tree-bu-q35181262 Make a stand-alone script. The script will be executed with the command

Exercise 4: Write a stand-alone python script, based on Lab.6a Ex. 1

https://www.chegg.com/homework-help/questions-and-answers/1-write-function-takes-input-directory-function-search-directory-full-subdirectory-tree-bu-q35181262

Make a stand-alone script. The script will be executed with the command python3 lab6b.py [dirname] where [dirname] is the name of the directory you wish the script to explore (the subdirectory tree of). Thus the name of your script should be lab6b.py.

The script will output the 20 most common file extensions it finds in the subdirectory tree. Output the extension name in green, and the number of files with that extension in red.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!