A

Admin • 833K Points
Coach

Q. How do you check if 'a' is present in a list `lst`?

  • (A) 'a' exists lst
  • (B) 'a' in lst
  • (C) lst has 'a'
  • (D) 'a' includes lst
  • Correct Answer - Option(B)
  • Views: 26
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

The `in` keyword checks for membership.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.