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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started