(continued from previous page files [ for in iterdir(if is_file()for in filesprint( directories in current folder print("\ "directory [ for in iterdir(if is_dir()print("directories in current folder:"for in directoryprint(dbelow is the output for above codepython find_ex py all files and folders in current directoryargparse_ex py cat py file txt file txt find_ex py folder files in current folderargparse_ex py cat py file txt file txt find_ex py directories in current folderf folder below is code to implement the 'findcommandlisting 'findcommand using python find_ex py import argparse import sys from pathlib import path parser argparse argumentparser(description="find command" positional argument when defined without -nargs='*or '?is required for default-positional-arg values read all command line arguments?read one command line arg parser add_argument('location'type=strnargs="*"default=' optional argument when defined with -no 'nargsi it' str (not list of strparser add_argument('--name'type=strdefault="*" possible values are " ""fand "allparser add_argument('--type',type=str,default="all",choices=[" "" ""all"](continues on next page find