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.

Required fields*

10
  • 3
    read it as 6 and (1 in lis) Commented Feb 9, 2016 at 9:56
  • 1
    Hint: what does just 1 and 5 print? How about 6 and 1? Commented Feb 9, 2016 at 9:57
  • if i use (6 and 1 ) in lis also it is TRUE how come it is supposed to be false right? Commented Feb 9, 2016 at 9:57
  • I think it is 6 and (1 in lis), not (6 and 1) in lis. Otherwise 0 and 1 in [0] would evaluate to true. Commented Feb 9, 2016 at 10:02
  • @khelwood It's not, see the link in my previous comment. Commented Feb 9, 2016 at 10:02