Answer:
Below is the required code:
Explanation:
Python Code
import os
import bin
dir = input("Please specify the location to the directory")
list = os.walk(dir)
a = length(list[1])
b = length(list[2])
print "Files: %n , Sub-dirs : %n" % (b,a)
decision = _(" Do you want to continue? (y/n) "))
if(decision):
cls
else :
exit()