- 1

Can someone please say what's wrong with my code?

https://code.sololearn.com/cpeJoaxm7u1Z/?ref=app

9th Feb 2021, 9:52 AM
Soumaya Islam Rimi
Soumaya Islam Rimi - avatar
4 odpowiedzi
+ 1
I think the error comes from not distinguishing between the methods vt and a (marked as private) _vt attribute
9th Feb 2021, 10:28 AM
Lisa
Lisa - avatar
0
In the example based on your code, I renamed the attribute _vt (marked as private to discourage user from directly accessing it) https://code.sololearn.com/cgOjJD5Jrdb1/?ref=app
9th Feb 2021, 11:31 AM
Lisa
Lisa - avatar
- 2
Not solved yet
9th Feb 2021, 10:56 AM
Soumaya Islam Rimi
Soumaya Islam Rimi - avatar
- 2
Can someone please rewrite it?
9th Feb 2021, 10:56 AM
Soumaya Islam Rimi
Soumaya Islam Rimi - avatar