Taking an online class on python. typed in from what i can tell the exact some code as the prof. but when i run it, i dont get anything back. not even a error. it just starts $ again. nothing happens at all.
import os
def rfile():
file_list = os.listdir(r"C:/home/zorba/Downloads/prank(2)/prank")
print(file_list)
it is a simple code but i cant get it to do anything. not even an error. i run it and nothing happens. im using linux so maybe im using lisdir() wrong. i dont know but i can continue with this lesson without this code working. the location of the file is home/zorba/Downloads/prank (2) and the file under prank (2) is called prank.