Write a funtion to print all the files in the current directory
Topic: Write a funtion to print all the files in the current directory
Solution
import os def list_files(): return os.listdir()
List all Python Programs
Solution
import os def list_files(): return os.listdir()