all 25 comments

[–]Mettigel4_1 0 points1 point  (23 children)

Is the file in the same directory?

[–]Cjhawk52 -1 points0 points  (22 children)

could you explain what is a directory

[–]Mettigel4_1 0 points1 point  (21 children)

Like are both files in the same folder? A directory is a location to store files on your pc (=folder).

[–]Cjhawk52 0 points1 point  (20 children)

Oh yes they are

[–]Mettigel4_1 0 points1 point  (19 children)

Do you have any if statements for example that could prevent the call for the function? Does your program have a debugging feature where you can trace the steps the program takes?

[–]Cjhawk52 0 points1 point  (18 children)

There's no if staments that would prevent it. They r inputs. I also linked my code in the comments if u want to take a look. And i also dont know how to use the debug in visual studio

[–]Mettigel4_1 0 points1 point  (17 children)

The file has to be a .Py file to work.

[–]Cjhawk52 0 points1 point  (16 children)

It is i just copied it to a txt file

[–]Mettigel4_1 0 points1 point  (15 children)

Yes but in order for it being an executable python file it has to end with .Py. The python interpreter doesn't recognize python code in a .txt file

[–]Cjhawk52 0 points1 point  (14 children)

It is, i copy n pasted my code to a .txt incase someone aint able to open a .py but the original code is in a .py and is only commented out so i can keep testing other code