+ 1
Hello to everyone. I have a problem in python3 .Need help
The problem is as follows. My tester says that the Value is written to the attribute of the object, but should be in the attribute of the class. Description in code. https://code.sololearn.com/c1nIX9A349YF/?ref=app
7 Answers
+ 4
As already said, i suppose an issue in the tester. Can you put it also in your file in playground, that you already posted?
+ 3
I did some tests with the class and its methods, this seems to work as expected. May be you check your tester orvpots it here? Thanks!
+ 2
I think it's about the history_array, it should be declared outside of methods to be in class level ( static variable in other languages.)
so that the array can be accessed with the class name.
+ 2
Samsil Arefeen fixed. Thanks.
0
Samsil Arefeen I tried, but the question was too long and I didn't post it. So I wrote in another section.
0
Lothar what does orvpots mean?
0
Lothar It works until you insert the last two lines to check the test program.