I am unable to list files in a directory with this code
import os
from os import listdir
def fn(): # 1.Get file names from directory
file_list=os.listdir(r"C:\Users\Jerry\Downloads\prank\prank")
print (file_list)
#2.To rename files
fn()
on running the code it gives no output !
fn()is inside the definition offn()fn()