> It works for me

Because, as pointed out by @Stefan_Salewski, you didn't use **while** 
isMainModule.

@adnan if it wasn't obvious from the answers, you should use **when** 
isMainModule.

Reply via email to