Question: Homework # # Use the os . listdir function to retrieve a list # of files and display them on the screen with # a
Homework
#
# Use the oslistdir function to retrieve a list
# of files and display them on the screen with
# a for loop.
#
# Then, with another for loop, display only the
# py files, if any.
#
# If there are no files in your current working
# directory so nothing shows in your output, modify
# your code use chdir near the at the beginning
# of the script to change into a directory that
# does have files.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
