educative.io

Result shows wrong but it is right

Result is right, also when I show into console (printed out strings), but it says that it would be wrong. image

Hi @Tom_Siewert ,
This is Fatimah from Educative. Thank you for reaching out to us.

The reason why your test cases are failing is that you are not using the correct method to solve the challenge. The challenge requires you to use the ljust() method to justify a string by padding it with another string. I hope that explanation helps!

Thank you for reaching out! Please feel free to get in touch if you have any questions or concerns.

Best regards,
Fatimah Abdullah | Developer Advocate
Educative

1 Like