I was solving a simple problem related to OOP in Hackerrank, and i came upon this. My code seems to be working but it’s not passing the Test Cases. Here is the link of the question: https://www.hackerrank.com/challenges/30-class-vs-instance/problem
And here is my code:
Update: The Problem has been solved. “a” was missing in a printing statement. <33
Close the question.
try adding a to the print statements…