I am having a problem when I'm trying to open and read a file with python.
My code goes as follows:
def main(): f = open('nummer.txt', 'r') text = f.readlines() print(text) main()
But when I try to run the code, I get an error. (No such file or directory).
I have saved the nummer.txt file in the same folder as the code, what is wrong here?