Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • you are one second faster :) +1 Commented Apr 14, 2014 at 16:27
  • Can you please explain what you're code is saying? thanks in advance Commented Apr 14, 2014 at 16:28
  • @user3245390 Updated to include description of code. Though it should be obvious from the code :) Commented Apr 14, 2014 at 16:32
  • well mine will also work now..:P but lots of downvotes got..:( Commented Apr 14, 2014 at 16:56
  • i was not aware of any() method and its working, today learned new thing from your answer..@dav_i Commented Apr 14, 2014 at 16:57