why my code is showing wrong answer while the exact code by someone else is showing correct answer

thats the problem statement

thats my code which is shown as “wrong answer”

thats the solution by someone else which is accepted

hi,
In elevator don’t use ‘s’. It’s “Elevator” not “Elevators”.

Please try and let me know, I’m correct or not.

Cheers,
Priya

Thats because you are printing Elevators instead of Elevator . Yes, that extra ‘s’ does matter.

haha, what a silly mistake :stuck_out_tongue: … anyways thanks

welcome :slight_smile: