Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can someone please help me with this question? In 1: import ou import on.path Import to Import sys from contextlib import redirect atdout datadir./publiedata Instructions

Can someone please help me with this question?
image text in transcribed
In 1: import ou import on.path Import to Import sys from contextlib import redirect atdout datadir./publiedata Instructions . Complete all the problems below by replacing the two-line sequence of # YOUR CODE HERE and raise Not ImplenentedError() with your solution code. Ali functions that you define for software labs must have docstrings. 01 Write a function myFileList(directory) that queries the specified directory, directory, for the files and folders contained therein and generates and returns a list with an element for each of the non- hidden files in the directory. This means that your list should not include any entries for hidden files (that start with a character), nor should it include entries for directories (i.c., folders). In 1 Solution cell YOUR COOR MERE raise Not implementeditor) Testing assert nyeint._do_shot one don't forget the desting sviab 01 filelist millat.) assert tentsiab 01 filelist) - 2 assert lebel. Lpyob in wlab_01_tulis assert ovlab 01.nd in wlab_01_tsleliat ting out with tougher test publedata thellat- nyrillie publiedata") sert tensyon tut in publedata telut You've reached the final checkpoint in the lab. Make sure to have it signed off by the instructor. Checkpoint 3: How many elements do you expect to be returned by nyFilelist("publicdata") ? Why

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago