Skip to content

No such file or directory error

This is the error I am getting: And this is my code: The E:/stuff/log.txt file exists. I can navigate in Windows Explorer and open it so why can’t I open it? EDIT: Output of DIR command: I am running the python script from the cmd like this: Answer Firstly, from above, Windows supports / just fine. Seco…

Print all variables in a class? – Python

I’m making a program that can access data stored inside a class. So for example I have this class: So using this I can call out a single variable like: But if I wanted to print all variables, I’m a little lost. If I run: I get: But I want to be able to print the actual data of those.