educative.io

Why are supposed to use str to print the self value in the code

Hi gunothamsolanki,

This is Anum from Educative.

This is because _str_ returns a string object.

We hope Educative has inspired to further your learning.

Best Regards,
Anum Hassan | Developer Advocate
[educative.io]